Module: ActiveAdmin::ResourceController::Collection::BaseCollection
- Included in:
- ActiveAdmin::ResourceController::Collection
- Defined in:
- lib/active_admin/resource_controller/collection.rb
Instance Method Summary (collapse)
- - (Object) active_admin_collection protected
- - (Object) collection protected
-
- (Object) scoped_collection
protected
Override this method in your controllers to modify the start point of our searches and index.
Instance Method Details
- (Object) active_admin_collection (protected)
16 17 18 |
# File 'lib/active_admin/resource_controller/collection.rb', line 16 def active_admin_collection scoped_collection end |
- (Object) collection (protected)
12 13 14 |
# File 'lib/active_admin/resource_controller/collection.rb', line 12 def collection get_collection_ivar || set_collection_ivar(active_admin_collection) end |
- (Object) scoped_collection (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.
30 31 32 |
# File 'lib/active_admin/resource_controller/collection.rb', line 30 def scoped_collection end_of_association_chain end |