Class: Component::Cell::Static

Inherits:
Dynamic
  • Object
show all
Defined in:
app/concepts/component/cell/static.rb

Instance Method Summary collapse

Constructor Details

#initialize(model = nil, options = {}) ⇒ Static

Returns a new instance of Static.



4
5
6
7
8
9
10
11
12
# File 'app/concepts/component/cell/static.rb', line 4

def initialize(model=nil, options={})
  super
  if options[:dynamic]
    @static = false
    @component_class = "anonym-dynamic-component-cell"
  else
    @static = true
  end
end