Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

final

  • Loading branch information...
commit 13bfe8135374f419818f50c02070000b0fecfa36 1 parent 6b391d9
@sled authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/simple_enum.rb
View
2  lib/simple_enum.rb
@@ -179,7 +179,7 @@ def as_enum(enum_cd, values, options = {})
enum_attr = :"#{attr_name.downcase}_enum_hash"
define_method("human_#{enum_cd}") do
- "#{attr_name.inspect}, #{self.send(enum_cd)}"
+ self.class.human_enum_name(attr_name.inspect, self.send(enum_cd))
end
write_inheritable_attribute(enum_attr, values)
Please sign in to comment.
Something went wrong with that request. Please try again.