Don't re-define local methods
This commit is contained in:
parent
d591716c2a
commit
40943761fc
|
@ -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
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
module Draper
|
||||
VERSION = "0.4.1"
|
||||
VERSION = "0.4.1.1"
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue