diff options
author | Godfrey Chan <godfreykfc@gmail.com> | 2013-12-05 18:12:42 -0800 |
---|---|---|
committer | Godfrey Chan <godfreykfc@gmail.com> | 2013-12-05 18:12:42 -0800 |
commit | 4b5e91956a432c6df5cc744b02416330524259e6 (patch) | |
tree | b7897ad323e335fe9c5faae4dc15f247f18b7673 | |
parent | fa414e6877cd6d68d95e6b7472a1df4ab31e382c (diff) | |
download | rails-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.rb | 13 |
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 |