Class: Mensa::Views::Component
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- Mensa::Views::Component
- Defined in:
- app/components/mensa/views/component.rb
Instance Attribute Summary collapse
-
#table ⇒ Object
readonly
renders_many :views.
Attributes inherited from ApplicationComponent
Instance Method Summary collapse
-
#initialize(table:) ⇒ Component
constructor
A new instance of Component.
Constructor Details
#initialize(table:) ⇒ Component
Returns a new instance of Component.
9 10 11 |
# File 'app/components/mensa/views/component.rb', line 9 def initialize(table:) @table = table end |
Instance Attribute Details
#table ⇒ Object (readonly)
renders_many :views
7 8 9 |
# File 'app/components/mensa/views/component.rb', line 7 def table @table end |