Skip to content

Commit

Permalink
_enum_methods_module should be kept private
Browse files Browse the repository at this point in the history
  • Loading branch information
chancancode committed Dec 6, 2013
1 parent fa414e6 commit 4b5e919
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions activerecord/lib/active_record/enum.rb
Expand Up @@ -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 4b5e919

Please sign in to comment.