vendor/plugins/enum-column/lib/enum/active_record_helper.rb
def enum_select(object_name, method, options = {})
        if RAILS_GEM_VERSION < '2.2.0'
          tag = InstanceTag.new(object_name, method, self, nil, options.delete(:object))
        else
          tag = InstanceTag.new(object_name, method, self, options.delete(:object))
        end
        tag.to_enum_select_tag(options)
      end
# helper to create a select drop down list for the enumerated values. This
# is the default input tag.
helper to create a select drop down list for the enumerated values. This
is the default input tag.
helper to create a select drop down list for the enumerated values . This is the default input tag .
def enum_select(object_name, method, options = {})
        if RAILS_GEM_VERSION < '2.2.0'
          tag = InstanceTag.new(object_name, method, self, nil, options.delete(:object))
        else
          tag = InstanceTag.new(object_name, method, self, options.delete(:object))
        end
        tag.to_enum_select_tag(options)
      end
def enum_select ( object_name , method , options = { } ) if RAILS_GEM_VERSION < '2.2.0' tag = InstanceTag . new ( object_name , method , self , nil , options . delete ( :object ) ) else tag = InstanceTag . new ( object_name , method , self , options . delete ( :object ) ) end tag . to_enum_select_tag ( options ) end
helper to create a select drop down list for the enumerated values.
helper to create a select drop down list for the enumerated values .
object_name
method
options