Browse files

Don't re-define local methods

  • Loading branch information...
1 parent d591716 commit 40943761fc484ff1243117698fbd0de6bcf576ec @jcasimir jcasimir committed Jul 12, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/draper/base.rb
  2. +1 −1 lib/draper/version.rb
View
2 lib/draper/base.rb
@@ -49,7 +49,7 @@ def select_methods
def build_methods
select_methods.each do |method|
- unless self.respond_to(method)
+ unless self.respond_to?(method)
(class << self; self; end).class_eval do
define_method method do |*args, &block|
source.send method, *args, &block
View
2 lib/draper/version.rb
@@ -1,3 +1,3 @@
module Draper
- VERSION = "0.4.1"
+ VERSION = "0.4.1.1"
end

0 comments on commit 4094376

Please sign in to comment.