Module: ActionView::Helpers::FormOptionsHelper

Defined in:
lib/enum/active_record_helper.rb

Overview

form_options_helper.rb

Instance Method Summary collapse

Instance Method Details

#enum_select(object, method, options = {}, html_options = {}) ⇒ Object

def select


22
23
24
# File 'lib/enum/active_record_helper.rb', line 22

def enum_select(object, method, options={}, html_options={})
	InstanceTag.new(object, method, self, options.delete(:object)).to_enum_select_tag(options, html_options)
end