Skip to content

Commit 2bea585

Browse files
committed
Made it use the correct prefix for enum_select, before it was "string" no matter what
1 parent 4df899e commit 2bea585

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/enum/active_record_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module Helpers
2020
module FormOptionsHelper
2121
#def select
2222
def enum_select(object, method, options={}, html_options={})
23-
InstanceTag.new(object.class.to_s.downcase, method, self, options.delete(:object)).to_enum_select_tag(options, html_options)
23+
InstanceTag.new(object, method, self, options.delete(:object)).to_enum_select_tag(options, html_options)
2424
end
2525
end
2626

0 commit comments

Comments
 (0)