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:
commit
807a50cfa5
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue