Class: Olivander::Components::ResourceShowComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Olivander::Components::ResourceShowComponent
- Defined in:
- app/components/olivander/components/resource_show_component.rb
Instance Method Summary collapse
-
#initialize(resource, actions) ⇒ ResourceShowComponent
constructor
A new instance of ResourceShowComponent.
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 |