Permalink
Browse files

remove superfluous self

  • Loading branch information...
1 parent 9319152 commit c964304cba2ac8f05a12cea66d8279ef233b3372 @markburns markburns committed Mar 3, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/draper/base.rb
View
5 lib/draper/base.rb
@@ -205,9 +205,10 @@ def method_missing(method, *args, &block)
super unless allow?(method)
self.class.send :define_method, method do |*args, &block|
- model.send(method, *args, &block)
+ model.send method, *args, &block
end
- self.send(method, *args, &block)
+
+ send method, *args, &block
rescue NoMethodError => no_method_error
super if no_method_error.name == method

0 comments on commit c964304

Please sign in to comment.