aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGodfrey Chan <godfreykfc@gmail.com>2013-12-05 18:12:42 -0800
committerGodfrey Chan <godfreykfc@gmail.com>2013-12-05 18:12:42 -0800
commit4b5e91956a432c6df5cc744b02416330524259e6 (patch)
treeb7897ad323e335fe9c5faae4dc15f247f18b7673
parentfa414e6877cd6d68d95e6b7472a1df4ab31e382c (diff)
downloadrails-4b5e91956a432c6df5cc744b02416330524259e6.tar.gz
rails-4b5e91956a432c6df5cc744b02416330524259e6.tar.bz2
rails-4b5e91956a432c6df5cc744b02416330524259e6.zip
_enum_methods_module should be kept private
-rw-r--r--activerecord/lib/active_record/enum.rb13
1 files changed, 7 insertions, 6 deletions
diff --git a/activerecord/lib/active_record/enum.rb b/activerecord/lib/active_record/enum.rb
index 34c17f11a9..b42039e722 100644
--- a/activerecord/lib/active_record/enum.rb
+++ b/activerecord/lib/active_record/enum.rb
@@ -88,12 +88,13 @@ module ActiveRecord
end
end
- def _enum_methods_module
- @_enum_methods_module ||= begin
- mod = Module.new
- include mod
- mod
+ private
+ def _enum_methods_module
+ @_enum_methods_module ||= begin
+ mod = Module.new
+ include mod
+ mod
+ end
end
- end
end
end