diff options
author | Akira Matsuda <ronnie@dio.jp> | 2016-03-06 12:15:12 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2016-03-06 12:15:12 +0900 |
commit | a2eb7962d3986c787d8ca66faca57c26617be499 (patch) | |
tree | 17ecdd3d8ac39e6d68d55935cc5c175a3fa2bfb6 /activerecord | |
parent | 873f39ee8000fa0f72a9d9b9482e6353409ea32a (diff) | |
download | rails-a2eb7962d3986c787d8ca66faca57c26617be499.tar.gz rails-a2eb7962d3986c787d8ca66faca57c26617be499.tar.bz2 rails-a2eb7962d3986c787d8ca66faca57c26617be499.zip |
This code won't work
[ci skip]
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/enum.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/enum.rb b/activerecord/lib/active_record/enum.rb index 903c63a7db..7be332fb97 100644 --- a/activerecord/lib/active_record/enum.rb +++ b/activerecord/lib/active_record/enum.rb @@ -152,7 +152,7 @@ module ActiveRecord 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 } |