Merge pull request #533 from buddhamagnet/master

Use block_given? in module_namespacing method
This commit is contained in:
Steve Klabnik 2013-04-29 15:05:36 -07:00
commit 807a50cfa5
1 changed files with 2 additions and 2 deletions

View File

@ -27,8 +27,8 @@ module Rails
# Rails 3.0.X compatibility, stolen from https://github.com/jnunemaker/mongomapper/pull/385/files#L1R32
unless methods.include?(:module_namespacing)
def module_namespacing(&block)
yield if block
def module_namespacing
yield if block_given?
end
end
end