Class: EasyAdmin::ScopesComponent

Inherits:
Phlex::HTML
  • Object
show all
Defined in:
app/components/easy_admin/scopes_component.rb

Instance Method Summary collapse

Constructor Details

#initialize(resource_class:, current_scope: nil, counts: {}) ⇒ ScopesComponent

Returns a new instance of ScopesComponent.



3
4
5
6
7
# File 'app/components/easy_admin/scopes_component.rb', line 3

def initialize(resource_class:, current_scope: nil, counts: {})
  @resource_class = resource_class
  @current_scope = current_scope
  @counts = counts
end