diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-12-06 03:03:39 -0800 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-12-06 03:03:39 -0800 |
commit | 6413fdeb52bf1da1e8f04a6577ac5736fe285000 (patch) | |
tree | 3183035abeb3fb81a9a829eeb6811369de4ed119 /activerecord/lib/active_record/enum.rb | |
parent | d78b3ecdee2c032fefc3afcfd955d7a93d02899f (diff) | |
parent | 4b5e91956a432c6df5cc744b02416330524259e6 (diff) | |
download | rails-6413fdeb52bf1da1e8f04a6577ac5736fe285000.tar.gz rails-6413fdeb52bf1da1e8f04a6577ac5736fe285000.tar.bz2 rails-6413fdeb52bf1da1e8f04a6577ac5736fe285000.zip |
Merge pull request #13210 from chancancode/more_enum_docs
Enum doc fixes
Diffstat (limited to 'activerecord/lib/active_record/enum.rb')
-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 |