Class: RecurringSelectHelper::InstanceTag

Inherits:
ActionView::Helpers::InstanceTag
  • Object
show all
Includes:
FormOptionsHelper, SelectHTMLOptions
Defined in:
app/helpers/recurring_select_helper.rb

Overview

Rails 3

Instance Method Summary collapse

Methods included from FormOptionsHelper

#recurring_options_for_select

Instance Method Details

#to_recurring_select_tag(default_schedules, options, html_options) ⇒ Object



128
129
130
131
132
133
134
135
136
137
# File 'app/helpers/recurring_select_helper.rb', line 128

def to_recurring_select_tag(default_schedules, options, html_options)
  html_options = recurring_select_html_options(html_options)
  add_default_name_and_id(html_options)
  value = value(object)
  options = add_options(
    recurring_options_for_select(value, default_schedules, options),
    options, value
  )
  ("select", options, html_options)
end