Class: Olivander::Components::ResourceShowComponent

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/olivander/components/resource_show_component.rb

Instance Method Summary collapse

Constructor Details

#initialize(resource, actions) ⇒ ResourceShowComponent

Returns a new instance of ResourceShowComponent.



7
8
9
10
11
# File 'app/components/olivander/components/resource_show_component.rb', line 7

def initialize(resource, actions)
  @resource = resource
  @actions = actions
  super
end