diff options
author | Alberto Almagro <albertoalmagro@gmail.com> | 2018-10-06 18:15:14 +0200 |
---|---|---|
committer | Alberto Almagro <albertoalmagro@gmail.com> | 2018-10-10 10:22:10 +0200 |
commit | df11558942f9eb97f9ed0293d1d4508f7685bb51 (patch) | |
tree | e6bb40f5cb22f1b3e52f45303297f75d6a7f0992 /activerecord/lib/active_record | |
parent | 9b9640112e197e94e13940c0c0f990cc80ca5498 (diff) | |
download | rails-df11558942f9eb97f9ed0293d1d4508f7685bb51.tar.gz rails-df11558942f9eb97f9ed0293d1d4508f7685bb51.tar.bz2 rails-df11558942f9eb97f9ed0293d1d4508f7685bb51.zip |
Privatize ENUM_CONFLICT_MESSAGE constant
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/enum.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/enum.rb b/activerecord/lib/active_record/enum.rb index 49fedc232c..3d97e4e513 100644 --- a/activerecord/lib/active_record/enum.rb +++ b/activerecord/lib/active_record/enum.rb @@ -224,6 +224,7 @@ module ActiveRecord "You tried to define an enum named \"%{enum}\" on the model \"%{klass}\", but " \ "this will generate a %{type} method \"%{method}\", which is already defined " \ "by %{source}." + private_constant :ENUM_CONFLICT_MESSAGE def detect_enum_conflict!(enum_name, method_name, klass_method = false) if klass_method && dangerous_class_method?(method_name) |