administrate
administrate copied to clipboard
A Rails engine that helps you put together a super-flexible admin dashboard.
Fix https://github.com/thoughtbot/administrate/issues/1332 To use specific [Policy Namespacing](https://github.com/varvet/pundit#policy-namespacing) for administrate, like admin namespace policies for example, just define the pundit_namespaces in an array format, like below. It is also backward compatible...
- This PR adds more flexibility to `Field::Select` so we can set an array of arrays and a hash to `collection` option. This behavior would be more intuitive since it...
When using the Clearance gem's backdoor to access views in administrate, tests prematurely break because of the `as` parameter used to do quick sign in. While it's probably fair that...
Reference: https://github.com/thoughtbot/administrate/pull/871 * support namespaced model for the dashboard generator * support namespaced model for the routes generator
When using the `rails g administrate:dashboard` generator with an uninitialized model name, the method will raise a NameError but the `app/dashboards/#{foo}_dashboard.rb` file will be created regardless. This happens because the...
Hard coding `:orders` here gets the tests to pass, but is naive. Unless the intention is to override the `sanitized_order_params` for each app in the `admin/application_controller.rb` file and manually specify...
I'm sure this code could be cleaned up, and there are likely edge cases, but I wanted to get this out here to start a discussion as to whether or...
This PR adds a pluggable search feature to Administrate. Instead of a simple boolean, `searchable` can now also take a class that implements `#query/2`, `#search_term`, and `#with_context/1`. There is a...
My model called `Action` has a dashboard, but this error happens preventing it from loading: ``` undefined method `fetch' for "index":String ``` Which comes from this part of `administrate/application_controller.rb` around...
```rails g administrate:dashboard Name/Model``` actual ``` create app/dashboards/model_dashboard.rb create app/controllers/admin/model_controller.rb ``` expected ``` create app/dashboards/name/model_dashboard.rb create app/controllers/admin/name/model_controller.rb ```