Module: RecurringSelectHelper::FormBuilder

Defined in:
lib/helpers/recurring_select_helper.rb

Instance Method Summary collapse

Instance Method Details

#select_recurring(method, default_schedules = nil, options = {}, html_options = {}) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/helpers/recurring_select_helper.rb', line 11

def select_recurring(method, default_schedules = nil, options = {}, html_options = {})
  if !@template.respond_to?(:select_recurring)
    @template.class.send(:include, RecurringSelectHelper::FormHelper)
  end

  @template.select_recurring(@object_name, method, default_schedules, options.merge(:object => @object), html_options)
end