Module: RecurringSelectHelper::FormBuilder

Defined in:
app/helpers/recurring_select_helper.rb

Instance Method Summary collapse

Instance Method Details

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


17
18
19
20
21
22
23
# File 'app/helpers/recurring_select_helper.rb', line 17

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