Method: Pageflow::Admin::CustomScopesRenderer#current_scope?
- Defined in:
- app/views/components/pageflow/admin/custom_scopes_renderer.rb
#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 |