Pablo Brasero

Results 298 comments of Pablo Brasero

Would it be possible to use `has_one`+`through` instead of `delegate`? Something like this: ```ruby class MyModel < ApplicationRecord belongs_to :property has_one :user, through: :property end ``` I tried this in...

Do you have SQL logs, to see what the search is actually trying to do?

The SQL is put together around these lines: https://github.com/thoughtbot/administrate/blob/3739c6436feee531153f56b5d5650f9f6a6e8940/lib/administrate/search.rb#L87-L95 I think it should be possible to alter this to generate a different string in the case of an enum. This...

Similar issue at https://github.com/thoughtbot/administrate/issues/1764

This is current in the works: https://github.com/thoughtbot/administrate/pull/1812

Is this something that should be incorporated? https://github.com/thoughtbot/administrate/pull/1967

This button doesn't exist currently. I had a look and I think it would involve the following: * Adding the link (or button) proper to the "show" template of the...

Would `show_action?` work for you? It's different from `valid_action?`. See http://administrate-demo.herokuapp.com/authorization To clarify: * `valid_action?`: tells if a route exists for the action. It probably should be a private method......

Good catch! I think that what you describe should have been caught by `BaseDashboard#collection_includes`. Maybe worth looking into there to see what's going on? As for `:scope`, I'm entertaining the...

Thank you for that comprehensive information @sedubois. I agree that this part of the code is a bit of a mess at the moment, and it's difficult to work with...