Module: Rails::AddOns::WidgetHelper

Defined in:
app/helpers/rails/add_ons/widget_helper.rb

Instance Method Summary collapse

Instance Method Details

#render_widget(name, options = {}, &block) ⇒ Object


4
5
6
7
# File 'app/helpers/rails/add_ons/widget_helper.rb', line 4

def render_widget(name, options = {}, &block)
  klass = "#{name}_widget".camelize.classify.constantize
  klass.new(self, options, &block).render
end