Skip to content
Browse files

final

  • Loading branch information...
1 parent 6b391d9 commit 13bfe8135374f419818f50c02070000b0fecfa36 @sled committed
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)

0 comments on commit 13bfe81

Please sign in to comment.
Something went wrong with that request. Please try again.