aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorAlberto Almagro <albertoalmagro@gmail.com>2018-10-06 18:15:14 +0200
committerAlberto Almagro <albertoalmagro@gmail.com>2018-10-10 10:22:10 +0200
commitdf11558942f9eb97f9ed0293d1d4508f7685bb51 (patch)
treee6bb40f5cb22f1b3e52f45303297f75d6a7f0992 /activerecord/lib/active_record
parent9b9640112e197e94e13940c0c0f990cc80ca5498 (diff)
downloadrails-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.rb1
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)