Class: Pageflow::Admin::CustomScopesRenderer Private
- Inherits:
-
ActiveAdmin::Views::Scopes
- Object
- ActiveAdmin::Views::Scopes
- Pageflow::Admin::CustomScopesRenderer
- Defined in:
- app/views/components/pageflow/admin/custom_scopes_renderer.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
Instance Method Details
#build(scopes, options = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
7 8 9 10 |
# File 'app/views/components/pageflow/admin/custom_scopes_renderer.rb', line 7 def build(scopes, = {}) @default_scope = .delete(:default_scope) super end |
#current_scope?(scope) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
12 13 14 15 16 17 18 |
# File 'app/views/components/pageflow/admin/custom_scopes_renderer.rb', line 12 def current_scope?(scope) if params[:scope] params[:scope] == scope.id else @default_scope.to_s == scope.id end end |