Skip to content

Commit

Permalink
This code won't work
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
amatsuda committed Mar 6, 2016
1 parent 873f39e commit a2eb796
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/enum.rb
Expand Up @@ -152,7 +152,7 @@ def enum(definitions)
enum_values = ActiveSupport::HashWithIndifferentAccess.new
name = name.to_sym

# def self.statuses statuses end
# def self.statuses() statuses end
detect_enum_conflict!(name, name.to_s.pluralize, true)
klass.singleton_class.send(:define_method, name.to_s.pluralize) { enum_values }

Expand Down

1 comment on commit a2eb796

@bogdan
Copy link
Contributor

@bogdan bogdan commented on a2eb796 Mar 6, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't the comment be moved one line lower?

Please sign in to comment.