Module: ActiveAdmin::ResourceController::Collection::BaseCollection
- Included in:
- ActiveAdmin::ResourceController::Collection
- Defined in:
- lib/active_admin/resource_controller/collection.rb
Instance Method Summary collapse
- #active_admin_collection ⇒ Object protected
- #collection ⇒ Object protected
-
#scoped_collection ⇒ Object
protected
Override this method in your controllers to modify the start point of our searches and index.
Instance Method Details
#active_admin_collection ⇒ Object (protected)
20 21 22 |
# File 'lib/active_admin/resource_controller/collection.rb', line 20 def active_admin_collection scoped_collection end |
#collection ⇒ Object (protected)
16 17 18 |
# File 'lib/active_admin/resource_controller/collection.rb', line 16 def collection get_collection_ivar || set_collection_ivar(active_admin_collection) end |
#scoped_collection ⇒ Object (protected)
Override this method in your controllers to modify the start point of our searches and index.
This method should return an ActiveRecord::Relation object so that the searching and filtering can be applied on top
Note, unless you are doing something special, you should use the scope_to method from the Scoping module instead of overriding this method.
34 35 36 |
# File 'lib/active_admin/resource_controller/collection.rb', line 34 def scoped_collection end_of_association_chain end |