Class: Bop::Block
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Bop::Block
- Defined in:
- app/models/bop/block.rb
Instance Method Summary collapse
Instance Method Details
#block_type ⇒ Object
9 10 11 |
# File 'app/models/bop/block.rb', line 9 def block_type Bop::BlockType[type] end |
#render(context, view = "show") ⇒ Object
13 14 15 |
# File 'app/models/bop/block.rb', line 13 def render(context, view="show") template(view).render(context) end |
#template(view) ⇒ Object
17 18 19 |
# File 'app/models/bop/block.rb', line 17 def template(view) block_type.template(view) end |