Permalink
Browse files

Merge pull request #13210 from chancancode/more_enum_docs

Enum doc fixes
  • Loading branch information...
rafaelfranca committed Dec 6, 2013
2 parents d78b3ec + 4b5e919 commit 6413fdeb52bf1da1e8f04a6577ac5736fe285000
Showing with 7 additions and 6 deletions.
  1. +7 −6 activerecord/lib/active_record/enum.rb
@@ -88,12 +88,13 @@ def enum(definitions)
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

0 comments on commit 6413fde

Please sign in to comment.