Class: Mensa::Views::Component

Inherits:
ApplicationComponent show all
Defined in:
app/components/mensa/views/component.rb

Instance Attribute Summary collapse

Attributes inherited from ApplicationComponent

#original_view_context

Instance Method Summary collapse

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

#tableObject (readonly)

renders_many :views



7
8
9
# File 'app/components/mensa/views/component.rb', line 7

def table
  @table
end