Skip to content

Commit

Permalink
Change calling prepend to called by send
Browse files Browse the repository at this point in the history
  • Loading branch information
rosylilly committed Mar 14, 2014
1 parent a05b66b commit 7b4c4b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/blue_print/behavior.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def prepended(base)

if const_defined?('ClassMethods')
singleton = class << base; self; end
singleton.prepend(const_get('ClassMethods'))
singleton.send(:prepend, const_get('ClassMethods'))
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/blue_print/context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def self.action!

casting.each_pair do |klass, roles|
roles.each do |role|
klass.prepend(role)
klass.send(:prepend, role)
end
end

Expand Down

0 comments on commit 7b4c4b9

Please sign in to comment.