Don't re-define local methods

This commit is contained in:
Jeff Casimir 2011-07-12 08:11:55 -04:00
parent d591716c2a
commit 40943761fc
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ module Draper
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 File

@ -1,3 +1,3 @@
module Draper
VERSION = "0.4.1"
VERSION = "0.4.1.1"
end