Skip to content

Commit

Permalink
Fix _for_select to return correct k,v
Browse files Browse the repository at this point in the history
  • Loading branch information
John Lynch committed Mar 8, 2011
1 parent e468cdb commit b18022b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/simple_enum.rb
Expand Up @@ -191,7 +191,7 @@ def self.#{attr_name}(*args)
def self.#{attr_name}_for_select(&block) def self.#{attr_name}_for_select(&block)
self.#{attr_name}.map do |k,v| self.#{attr_name}.map do |k,v|
[block_given? ? yield(k,v) : self.human_enum_name(#{attr_name.inspect}, k), k] [block_given? ? yield(k,v) : self.human_enum_name(#{attr_name.inspect}, k), v]
end end
end end
RUBY RUBY
Expand Down

0 comments on commit b18022b

Please sign in to comment.