Module: Enjoy::Pages::Models::Blockset
- Extended by:
- ActiveSupport::Concern
- Includes:
- Enableable, Model, ManualSlug
- Included in:
- Blockset
- Defined in:
- lib/enjoy/pages/models/blockset.rb
Instance Method Summary collapse
Instance Method Details
#render(view, content = "") ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/enjoy/pages/models/blockset.rb', line 16 def render(view, content = "") ret = content if use_wrapper _attrs = { class: wrapper_class, id: wrapper_id }.merge(wrapper_attributes) ret = view.content_tag wrapper_tag, ret, _attrs end ret = yield ret if block_given? return ret end |