draper 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/lib/draper/base.rb CHANGED
@@ -49,9 +49,11 @@ module Draper
49
49
 
50
50
  def build_methods
51
51
  select_methods.each do |method|
52
- (class << self; self; end).class_eval do
53
- define_method method do |*args, &block|
54
- source.send method, *args, &block
52
+ unless self.respond_to(method)
53
+ (class << self; self; end).class_eval do
54
+ define_method method do |*args, &block|
55
+ source.send method, *args, &block
56
+ end
55
57
  end
56
58
  end
57
59
  end
@@ -1,3 +1,3 @@
1
1
  module Draper
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: draper
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.4.0
5
+ version: 0.4.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jeff Casimir
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-07-11 00:00:00 -04:00
13
+ date: 2011-07-12 00:00:00 -04:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -143,7 +143,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
143
143
  requirements:
144
144
  - - ">="
145
145
  - !ruby/object:Gem::Version
146
- hash: 3457998694318349497
146
+ hash: 4298332547027149631
147
147
  segments:
148
148
  - 0
149
149
  version: "0"
@@ -152,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
152
  requirements:
153
153
  - - ">="
154
154
  - !ruby/object:Gem::Version
155
- hash: 3457998694318349497
155
+ hash: 4298332547027149631
156
156
  segments:
157
157
  - 0
158
158
  version: "0"