Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ How to use it.

In you Gemfile:

gem 'enum_column3'
gem 'enum_column3', :git => 'git://github.com/debaillie/enum_column.git'

In your schema:

Expand Down
4 changes: 2 additions & 2 deletions lib/enum/active_record_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def to_enum_select_tag(options, html_options={})
if (value = self.object.__send__(method_name.to_sym))
options[:selected] ||= value.to_s
else
options[:include_blank] = enums.allows_nil? if options[:include_blank].nil?
options[:include_blank] = options[:include_blank] == true
end
end
to_select_tag(choices, options, html_options)
Expand Down Expand Up @@ -60,4 +60,4 @@ def enum_select(method, options={}, html_options={})

end
end
end
end