Class: RecurringSelectHelper::RecurringSelectTag
- Inherits:
-
ActionView::Helpers::Tags::Base
- Object
- ActionView::Helpers::Tags::Base
- RecurringSelectHelper::RecurringSelectTag
- Includes:
- FormOptionsHelper, SelectHTMLOptions
- Defined in:
- lib/helpers/recurring_select_helper.rb
Instance Method Summary collapse
-
#initialize(object, method, template_object, default_schedules = nil, options = {}, html_options = {}) ⇒ RecurringSelectTag
constructor
A new instance of RecurringSelectTag.
- #render ⇒ Object
Methods included from FormOptionsHelper
Constructor Details
#initialize(object, method, template_object, default_schedules = nil, options = {}, html_options = {}) ⇒ RecurringSelectTag
Returns a new instance of RecurringSelectTag.
97 98 99 100 101 102 103 104 105 106 107 |
# File 'lib/helpers/recurring_select_helper.rb', line 97 def initialize(object, method, template_object, default_schedules = nil, = {}, = {}) @default_schedules = default_schedules @choices = @choices.to_a if @choices.is_a?(Range) @method_name = method.to_s @object_name = object.to_s @html_options = () @template_object = template_object add_default_name_and_id(@html_options) super(object, method, template_object, ) end |
Instance Method Details
#render ⇒ Object
109 110 111 112 |
# File 'lib/helpers/recurring_select_helper.rb', line 109 def render = ((value, @default_schedules, @options), @options, value) select_content_tag(, @options, @html_options) end |