1
0
Fork 0
mirror of https://github.com/drapergem/draper synced 2023-03-27 23:21:17 -04:00

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

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