class ActionView::Helpers::Tags::SubdivisionSelect
TODO: can we inherit from Select?
Public Class Methods
new(object_name, method_name, template_object, options, html_options)
click to toggle source
Calls superclass method
# File lib/subdivision_select/subdivision_select_helper.rb, line 42 def initialize(object_name, method_name, template_object, options, html_options) @html_options = html_options # Add data attribue, for selecting via JS @html_options["data-subdivision-selector"] = "1" super(object_name, method_name, template_object, options) end
Public Instance Methods
render()
click to toggle source
# File lib/subdivision_select/subdivision_select_helper.rb, line 50 def render select_content_tag(subdivision_option_tags, @options, @html_options) end