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
# File 'app/concepts/component/cell/static.rb', line 4

def initialize(model=nil, options={})
  super
  @static = true
end

Instance Method Details

#show(&block) ⇒ Object



9
10
11
# File 'app/concepts/component/cell/static.rb', line 9

def show(&block)
  render(view: :static, &block)
end