Class: Admin::UrlRewritesController::Collection
- Inherits:
-
Katalyst::Tables::Collection::Base
- Object
- Katalyst::Tables::Collection::Base
- Admin::UrlRewritesController::Collection
- Defined in:
- app/controllers/admin/url_rewrites_controller.rb
Instance Method Summary collapse
Instance Method Details
#filter ⇒ Object
69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'app/controllers/admin/url_rewrites_controller.rb', line 69 def filter self.items = items.admin_search(search) if search.present? self.items = case scope&.to_sym when :active items.where(active: true) when :inactive items.where(active: false) else items end end |