Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #13210 from chancancode/more_enum_docs

Enum doc fixes
  • Loading branch information...
commit 6413fdeb52bf1da1e8f04a6577ac5736fe285000 2 parents d78b3ec + 4b5e919
@rafaelfranca rafaelfranca authored
Showing with 7 additions and 6 deletions.
  1. +7 −6 activerecord/lib/active_record/enum.rb
View
13 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
Please sign in to comment.
Something went wrong with that request. Please try again.