Greg Schmit
Greg Schmit
In my project I added this to `ApplicationRecord`: ``` def self.inherited(subclass) super # Run auto_strip_attributes on all :string columns. auto_strip_attributes( *subclass.columns.select { |c| c.type == :string }.map(&:name), nullify: false, squish:...
Update on my solution; I decided to put it in a concern and include it into specific models where I needed it. Obviously I used extra options that work with...
If anyone finds this helpful, here is where it actually takes 2 minutes (I installed `ffi` separately because it's a dependency and for comparison w/time): gns@gns-mac1 ~ % docker run...
I built a template function `route` that basically concatenates parameters (up to 5) with each other, smartly collapsing slashes if needed (but still allowing you to double up if needed)....
Not completely, but it could be because I'm not an expert. What output do you expect from the examples you gave? -gns
I do understand that you want to load `appPath` automatically (which makes sense to me), but it is the second part that I'm not entirely grasping. I think if you...
+1 Generic apps should use class-based generic views to allow overriding in a way that doesn't require the developer to copy and paste source code into their implementation.
I plan on refactoring a couple of them to class-based views and submitting a pull request. It is nice to get a reply here since that gives me hope that...
Since Rails routes `PUT` and `PATCH` to the `update` action, I don't think I want to stray from that convention as it may be unintuitive for our users. However, I...
This is only available by using the Ransack integration. I do plan on implementing this in the regular ModelFilter in the near future.