aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-12-06 03:03:39 -0800
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-12-06 03:03:39 -0800
commit6413fdeb52bf1da1e8f04a6577ac5736fe285000 (patch)
tree3183035abeb3fb81a9a829eeb6811369de4ed119
parentd78b3ecdee2c032fefc3afcfd955d7a93d02899f (diff)
parent4b5e91956a432c6df5cc744b02416330524259e6 (diff)
downloadrails-6413fdeb52bf1da1e8f04a6577ac5736fe285000.tar.gz
rails-6413fdeb52bf1da1e8f04a6577ac5736fe285000.tar.bz2
rails-6413fdeb52bf1da1e8f04a6577ac5736fe285000.zip
Merge pull request #13210 from chancancode/more_enum_docs
Enum doc fixes
-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