Class: DynamicPortlet

Inherits:
Portlet
  • Object
show all
Defined in:
app/portlets/dynamic_portlet.rb

Instance Attribute Summary

Attributes inherited from Portlet

#connect_to_container, #connect_to_page_id

Instance Method Summary collapse

Methods inherited from Portlet

columns_for_index, content_block_type, content_block_type_for_list, default_template, default_template_path, form, get_subclass, has_edit_link?, inherited, #inline_options, #instance_name, load_portlets, #portlet_type_name, set_default_template_path, #type_name, types

Instance Method Details

#renderObject



3
4
5
# File 'app/portlets/dynamic_portlet.rb', line 3

def render
  eval(@portlet.code) unless @portlet.code.blank?
end