draper 0.17.0 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. data/CHANGELOG.markdown +6 -0
  2. data/Readme.markdown +22 -45
  3. data/draper.gemspec +2 -1
  4. data/lib/draper.rb +1 -1
  5. data/lib/draper/base.rb +4 -4
  6. data/lib/draper/decorated_enumerable_proxy.rb +34 -1
  7. data/lib/draper/model_support.rb +11 -3
  8. data/lib/draper/railtie.rb +2 -2
  9. data/lib/draper/system.rb +10 -2
  10. data/lib/draper/test/minitest_integration.rb +5 -24
  11. data/lib/draper/test/rspec_integration.rb +0 -6
  12. data/lib/draper/version.rb +1 -1
  13. data/lib/draper/view_context.rb +28 -3
  14. data/lib/generators/rspec/decorator_generator.rb +1 -1
  15. data/lib/generators/test_unit/decorator_generator.rb +1 -1
  16. data/lib/generators/test_unit/templates/decorator_test.rb +0 -3
  17. data/spec/draper/base_spec.rb +12 -2
  18. data/spec/draper/decorated_enumerable_proxy_spec.rb +45 -0
  19. data/spec/generators/decorator/decorator_generator_spec.rb +21 -1
  20. data/spec/minitest-rails/spec_type_spec.rb +63 -0
  21. data/spec/spec_helper.rb +23 -5
  22. data/spec/support/samples/enumerable_proxy.rb +3 -0
  23. data/spec/support/samples/products_decorator.rb +10 -0
  24. metadata +32 -40
  25. data/doc/ApplicationDecorator.html +0 -147
  26. data/doc/Draper.html +0 -123
  27. data/doc/Draper/AllHelpers.html +0 -256
  28. data/doc/Draper/Base.html +0 -1222
  29. data/doc/Draper/DecoratorGenerator.html +0 -216
  30. data/doc/Draper/LazyHelpers.html +0 -174
  31. data/doc/Draper/ModelSupport.html +0 -164
  32. data/doc/Draper/System.html +0 -179
  33. data/doc/_index.html +0 -172
  34. data/doc/class_list.html +0 -47
  35. data/doc/css/common.css +0 -1
  36. data/doc/css/full_list.css +0 -53
  37. data/doc/css/style.css +0 -320
  38. data/doc/file_list.html +0 -46
  39. data/doc/frames.html +0 -13
  40. data/doc/index.html +0 -172
  41. data/doc/js/app.js +0 -205
  42. data/doc/js/full_list.js +0 -150
  43. data/doc/js/jquery.js +0 -16
  44. data/doc/method_list.html +0 -174
  45. data/doc/top-level-namespace.html +0 -103
  46. data/lib/draper/test/view_context.rb +0 -12
  47. data/spec/draper/helper_support_spec.rb +0 -18
  48. data/spec/draper/view_context_spec.rb +0 -30
  49. data/spec/support/samples/active_model.rb +0 -9
  50. data/spec/support/samples/application_controller.rb +0 -42
  51. data/spec/support/samples/application_helper.rb +0 -8
@@ -0,0 +1,45 @@
1
+ require 'spec_helper'
2
+
3
+ describe Draper::DecoratedEnumerableProxy do
4
+ before(:each){ ApplicationController.new.view_context }
5
+ subject{ ProductsDecorator.new(source, ProductDecorator) }
6
+ let(:source){ Product.new }
7
+ let(:non_active_model_source){ NonActiveModelProduct.new }
8
+
9
+ context(".helpers") do
10
+ it "have a valid view_context" do
11
+ subject.helpers.should be
12
+ end
13
+
14
+ it "is aliased to .h" do
15
+ subject.h.should == subject.helpers
16
+ end
17
+
18
+ it "build a new view context" do
19
+ Thread.current[:current_view_context] = nil
20
+ subject.helpers.should be
21
+ end
22
+ end
23
+
24
+ context(".decorates") do
25
+ it "sets the model for the decorated" do
26
+ EnumerableProxy.new([source], ProductDecorator).first.model.should == source
27
+ end
28
+
29
+ it "decorates an empty array with the class" do
30
+ EnumerableProxy.decorates([], class: ProductDecorator).should be
31
+ end
32
+
33
+ it "discerns collection items decorator by the name of the decorator" do
34
+ ProductsDecorator.decorates([]).should be
35
+ end
36
+
37
+ it "methods in decorated empty array should work" do
38
+ ProductsDecorator.decorates([]).some_method.should == "some method works"
39
+ end
40
+
41
+ it "raises when decorates an empty array without the klass" do
42
+ lambda{EnumerableProxy.decorates([])}.should raise_error
43
+ end
44
+ end
45
+ end
@@ -65,7 +65,17 @@ describe Rails::Generators::DecoratorGenerator do
65
65
  end
66
66
  end
67
67
 
68
- context 'using rspec' do
68
+ context 'using rspec with namespaced model' do
69
+ before { run_generator ["Namespace::YourModel", "-t=rspec"] }
70
+
71
+ describe 'spec/decorators/your_model_decorator_spec.rb' do
72
+ subject { file('spec/decorators/namespace/your_model_decorator_spec.rb') }
73
+ it { should exist }
74
+ it { should contain "describe Namespace::YourModelDecorator" }
75
+ end
76
+ end
77
+
78
+ context 'using test-unit' do
69
79
  before { run_generator ["YourModel", "-t=test_unit"] }
70
80
 
71
81
  describe 'test/decorators/YourModel_decorator_test.rb' do
@@ -74,4 +84,14 @@ describe Rails::Generators::DecoratorGenerator do
74
84
  it { should contain "class YourModelDecoratorTest < ActiveSupport::TestCase" }
75
85
  end
76
86
  end
87
+
88
+ context 'using test-unit with namespaced model' do
89
+ before { run_generator ["Namespace::YourModel", "-t=test_unit"] }
90
+
91
+ describe 'test/decorators/your_model_decorator_test.rb' do
92
+ subject { file('test/decorators/namespace/your_model_decorator_test.rb') }
93
+ it { should exist }
94
+ it { should contain "class Namespace::YourModelDecoratorTest < ActiveSupport::TestCase" }
95
+ end
96
+ end
77
97
  end
@@ -0,0 +1,63 @@
1
+ require 'spec_helper'
2
+ require 'minitest/rails/active_support'
3
+ require 'draper/test/minitest_integration'
4
+
5
+ describe "minitest-rails spec_type Lookup Integration" do
6
+ context "ProductDecorator" do
7
+ it "resolves constants" do
8
+ klass = MiniTest::Spec.spec_type(ProductDecorator)
9
+ klass.should == MiniTest::Rails::ActiveSupport::TestCase
10
+ end
11
+
12
+ it "resolves strings" do
13
+ klass = MiniTest::Spec.spec_type("ProductDecorator")
14
+ klass.should == MiniTest::Rails::ActiveSupport::TestCase
15
+ end
16
+ end
17
+
18
+ context "WidgetDecorator" do
19
+ it "resolves constants" do
20
+ klass = MiniTest::Spec.spec_type(WidgetDecorator)
21
+ klass.should == MiniTest::Rails::ActiveSupport::TestCase
22
+ end
23
+
24
+ it "resolves strings" do
25
+ klass = MiniTest::Spec.spec_type("WidgetDecorator")
26
+ klass.should == MiniTest::Rails::ActiveSupport::TestCase
27
+ end
28
+ end
29
+
30
+ context "decorator strings" do
31
+ it "resolves DoesNotExistDecorator" do
32
+ klass = MiniTest::Spec.spec_type("DoesNotExistDecorator")
33
+ klass.should == MiniTest::Rails::ActiveSupport::TestCase
34
+ end
35
+
36
+ it "resolves DoesNotExistDecoratorTest" do
37
+ klass = MiniTest::Spec.spec_type("DoesNotExistDecoratorTest")
38
+ klass.should == MiniTest::Rails::ActiveSupport::TestCase
39
+ end
40
+
41
+ it "resolves Does Not Exist Decorator" do
42
+ klass = MiniTest::Spec.spec_type("Does Not Exist Decorator")
43
+ klass.should == MiniTest::Rails::ActiveSupport::TestCase
44
+ end
45
+
46
+ it "resolves Does Not Exist Decorator Test" do
47
+ klass = MiniTest::Spec.spec_type("Does Not Exist Decorator Test")
48
+ klass.should == MiniTest::Rails::ActiveSupport::TestCase
49
+ end
50
+ end
51
+
52
+ context "non-decorators" do
53
+ it "doesn't resolve constants" do
54
+ klass = MiniTest::Spec.spec_type(Draper::HelperSupport)
55
+ klass.should == MiniTest::Spec
56
+ end
57
+
58
+ it "doesn't resolve strings" do
59
+ klass = MiniTest::Spec.spec_type("Nothing to see here...")
60
+ klass.should == MiniTest::Spec
61
+ end
62
+ end
63
+ end
data/spec/spec_helper.rb CHANGED
@@ -3,13 +3,9 @@ require 'ammeter/init'
3
3
  require 'rails'
4
4
 
5
5
  require 'action_view'
6
- require './spec/support/samples/application_controller'
7
-
8
6
  Bundler.require
9
7
 
10
- require './spec/support/samples/active_model'
11
8
  require './spec/support/samples/active_record'
12
- require './spec/support/samples/application_helper'
13
9
  require './spec/support/samples/decorator'
14
10
  require './spec/support/samples/decorator_with_allows'
15
11
  require './spec/support/samples/decorator_with_multiple_allows'
@@ -17,11 +13,13 @@ require './spec/support/samples/decorator_with_application_helper'
17
13
  require './spec/support/samples/decorator_with_denies'
18
14
  require './spec/support/samples/decorator_with_denies_all'
19
15
  require './spec/support/samples/decorator_with_special_methods'
16
+ require './spec/support/samples/enumerable_proxy'
20
17
  require './spec/support/samples/namespaced_product'
21
18
  require './spec/support/samples/namespaced_product_decorator'
22
19
  require './spec/support/samples/non_active_model_product'
23
20
  require './spec/support/samples/product'
24
21
  require './spec/support/samples/product_decorator'
22
+ require './spec/support/samples/products_decorator'
25
23
  require './spec/support/samples/sequel_product'
26
24
  require './spec/support/samples/specific_product_decorator'
27
25
  require './spec/support/samples/some_thing'
@@ -29,8 +27,28 @@ require './spec/support/samples/some_thing_decorator'
29
27
  require './spec/support/samples/widget'
30
28
  require './spec/support/samples/widget_decorator'
31
29
 
30
+ require 'action_controller'
31
+ require 'action_controller/test_case'
32
+
32
33
  module ActionController
33
34
  class Base
34
- Draper::System.setup(self)
35
+ Draper::System.setup_action_controller(self)
36
+ end
37
+ end
38
+
39
+ module ActiveRecord
40
+ class Relation
35
41
  end
36
42
  end
43
+
44
+ class ApplicationController < ActionController::Base
45
+ def hello_world
46
+ "Hello, World!"
47
+ end
48
+ helper_method :hello_world
49
+ end
50
+
51
+
52
+ class << Rails
53
+ undef application # Avoid silly Rails bug: https://github.com/rails/rails/pull/6429
54
+ end
@@ -0,0 +1,3 @@
1
+ class EnumerableProxy < Draper::DecoratedEnumerableProxy
2
+
3
+ end
@@ -0,0 +1,10 @@
1
+ class ProductsDecorator < Draper::DecoratedEnumerableProxy
2
+
3
+ def link_to
4
+ h.link_to 'sample', "#"
5
+ end
6
+
7
+ def some_method
8
+ "some method works"
9
+ end
10
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: draper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.18.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-08-21 00:00:00.000000000 Z
13
+ date: 2012-10-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
@@ -49,17 +49,17 @@ dependencies:
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
- - - '='
52
+ - - ! '>='
53
53
  - !ruby/object:Gem::Version
54
- version: 0.2.2
54
+ version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
57
  version_requirements: !ruby/object:Gem::Requirement
58
58
  none: false
59
59
  requirements:
60
- - - '='
60
+ - - ! '>='
61
61
  - !ruby/object:Gem::Version
62
- version: 0.2.2
62
+ version: '0'
63
63
  - !ruby/object:Gem::Dependency
64
64
  name: rake
65
65
  requirement: !ruby/object:Gem::Requirement
@@ -108,6 +108,22 @@ dependencies:
108
108
  - - ! '>='
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: minitest-rails
113
+ requirement: !ruby/object:Gem::Requirement
114
+ none: false
115
+ requirements:
116
+ - - ~>
117
+ - !ruby/object:Gem::Version
118
+ version: '0.2'
119
+ type: :development
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ none: false
123
+ requirements:
124
+ - - ~>
125
+ - !ruby/object:Gem::Version
126
+ version: '0.2'
111
127
  description: Draper implements a decorator or presenter pattern for Rails applications.
112
128
  email:
113
129
  - jeff@casimircreative.com
@@ -125,27 +141,6 @@ files:
125
141
  - Guardfile
126
142
  - Rakefile
127
143
  - Readme.markdown
128
- - doc/ApplicationDecorator.html
129
- - doc/Draper.html
130
- - doc/Draper/AllHelpers.html
131
- - doc/Draper/Base.html
132
- - doc/Draper/DecoratorGenerator.html
133
- - doc/Draper/LazyHelpers.html
134
- - doc/Draper/ModelSupport.html
135
- - doc/Draper/System.html
136
- - doc/_index.html
137
- - doc/class_list.html
138
- - doc/css/common.css
139
- - doc/css/full_list.css
140
- - doc/css/style.css
141
- - doc/file_list.html
142
- - doc/frames.html
143
- - doc/index.html
144
- - doc/js/app.js
145
- - doc/js/full_list.js
146
- - doc/js/jquery.js
147
- - doc/method_list.html
148
- - doc/top-level-namespace.html
149
144
  - draper.gemspec
150
145
  - lib/draper.rb
151
146
  - lib/draper/active_model_support.rb
@@ -159,7 +154,6 @@ files:
159
154
  - lib/draper/system.rb
160
155
  - lib/draper/test/minitest_integration.rb
161
156
  - lib/draper/test/rspec_integration.rb
162
- - lib/draper/test/view_context.rb
163
157
  - lib/draper/version.rb
164
158
  - lib/draper/view_context.rb
165
159
  - lib/generators/decorator/decorator_generator.rb
@@ -174,15 +168,12 @@ files:
174
168
  - performance/decorators.rb
175
169
  - performance/models.rb
176
170
  - spec/draper/base_spec.rb
177
- - spec/draper/helper_support_spec.rb
171
+ - spec/draper/decorated_enumerable_proxy_spec.rb
178
172
  - spec/draper/model_support_spec.rb
179
- - spec/draper/view_context_spec.rb
180
173
  - spec/generators/decorator/decorator_generator_spec.rb
174
+ - spec/minitest-rails/spec_type_spec.rb
181
175
  - spec/spec_helper.rb
182
- - spec/support/samples/active_model.rb
183
176
  - spec/support/samples/active_record.rb
184
- - spec/support/samples/application_controller.rb
185
- - spec/support/samples/application_helper.rb
186
177
  - spec/support/samples/decorator.rb
187
178
  - spec/support/samples/decorator_with_allows.rb
188
179
  - spec/support/samples/decorator_with_application_helper.rb
@@ -190,11 +181,13 @@ files:
190
181
  - spec/support/samples/decorator_with_denies_all.rb
191
182
  - spec/support/samples/decorator_with_multiple_allows.rb
192
183
  - spec/support/samples/decorator_with_special_methods.rb
184
+ - spec/support/samples/enumerable_proxy.rb
193
185
  - spec/support/samples/namespaced_product.rb
194
186
  - spec/support/samples/namespaced_product_decorator.rb
195
187
  - spec/support/samples/non_active_model_product.rb
196
188
  - spec/support/samples/product.rb
197
189
  - spec/support/samples/product_decorator.rb
190
+ - spec/support/samples/products_decorator.rb
198
191
  - spec/support/samples/sequel_product.rb
199
192
  - spec/support/samples/some_thing.rb
200
193
  - spec/support/samples/some_thing_decorator.rb
@@ -215,7 +208,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
215
208
  version: '0'
216
209
  segments:
217
210
  - 0
218
- hash: 26927068821793701
211
+ hash: 3407414068195492297
219
212
  required_rubygems_version: !ruby/object:Gem::Requirement
220
213
  none: false
221
214
  requirements:
@@ -224,7 +217,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
224
217
  version: '0'
225
218
  segments:
226
219
  - 0
227
- hash: 26927068821793701
220
+ hash: 3407414068195492297
228
221
  requirements: []
229
222
  rubyforge_project: draper
230
223
  rubygems_version: 1.8.24
@@ -233,15 +226,12 @@ specification_version: 3
233
226
  summary: Decorator pattern implementation for Rails.
234
227
  test_files:
235
228
  - spec/draper/base_spec.rb
236
- - spec/draper/helper_support_spec.rb
229
+ - spec/draper/decorated_enumerable_proxy_spec.rb
237
230
  - spec/draper/model_support_spec.rb
238
- - spec/draper/view_context_spec.rb
239
231
  - spec/generators/decorator/decorator_generator_spec.rb
232
+ - spec/minitest-rails/spec_type_spec.rb
240
233
  - spec/spec_helper.rb
241
- - spec/support/samples/active_model.rb
242
234
  - spec/support/samples/active_record.rb
243
- - spec/support/samples/application_controller.rb
244
- - spec/support/samples/application_helper.rb
245
235
  - spec/support/samples/decorator.rb
246
236
  - spec/support/samples/decorator_with_allows.rb
247
237
  - spec/support/samples/decorator_with_application_helper.rb
@@ -249,11 +239,13 @@ test_files:
249
239
  - spec/support/samples/decorator_with_denies_all.rb
250
240
  - spec/support/samples/decorator_with_multiple_allows.rb
251
241
  - spec/support/samples/decorator_with_special_methods.rb
242
+ - spec/support/samples/enumerable_proxy.rb
252
243
  - spec/support/samples/namespaced_product.rb
253
244
  - spec/support/samples/namespaced_product_decorator.rb
254
245
  - spec/support/samples/non_active_model_product.rb
255
246
  - spec/support/samples/product.rb
256
247
  - spec/support/samples/product_decorator.rb
248
+ - spec/support/samples/products_decorator.rb
257
249
  - spec/support/samples/sequel_product.rb
258
250
  - spec/support/samples/some_thing.rb
259
251
  - spec/support/samples/some_thing_decorator.rb
@@ -1,147 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- <title>
7
- Class: ApplicationDecorator
8
-
9
- &mdash; Documentation by YARD 0.7.2
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- relpath = '';
19
- if (relpath != '') relpath += '/';
20
- </script>
21
-
22
- <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
23
-
24
- <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
25
-
26
-
27
- </head>
28
- <body>
29
- <script type="text/javascript" charset="utf-8">
30
- if (window.top.frames.main) document.body.className = 'frames';
31
- </script>
32
-
33
- <div id="header">
34
- <div id="menu">
35
-
36
- <a href="_index.html">Index (A)</a> &raquo;
37
-
38
-
39
- <span class="title">ApplicationDecorator</span>
40
-
41
-
42
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
43
- </div>
44
-
45
- <div id="search">
46
-
47
- <a id="class_list_link" href="#">Class List</a>
48
-
49
- <a id="method_list_link" href="#">Method List</a>
50
-
51
- <a id="file_list_link" href="#">File List</a>
52
-
53
- </div>
54
- <div class="clear"></div>
55
- </div>
56
-
57
- <iframe id="search_frame"></iframe>
58
-
59
- <div id="content"><h1>Class: ApplicationDecorator
60
-
61
-
62
-
63
- </h1>
64
-
65
- <dl class="box">
66
-
67
- <dt class="r1">Inherits:</dt>
68
- <dd class="r1">
69
- <span class="inheritName"><span class='object_link'><a href="Draper/Base.html" title="Draper::Base (class)">Draper::Base</a></span></span>
70
-
71
- <ul class="fullTree">
72
- <li>Object</li>
73
-
74
- <li class="next"><span class='object_link'><a href="Draper/Base.html" title="Draper::Base (class)">Draper::Base</a></span></li>
75
-
76
- <li class="next">ApplicationDecorator</li>
77
-
78
- </ul>
79
- <a href="#" class="inheritanceTree">show all</a>
80
-
81
- </dd>
82
-
83
-
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
- <dt class="r2 last">Defined in:</dt>
92
- <dd class="r2 last">lib/generators/draper/decorator/templates/application_decorator.rb</dd>
93
-
94
- </dl>
95
- <div class="clear"></div>
96
-
97
-
98
- <h2>Constant Summary</h2>
99
-
100
-
101
-
102
-
103
-
104
-
105
-
106
- <h3 class="inherited">Constants inherited from <span class='object_link'><a href="Draper/Base.html" title="Draper::Base (class)">Draper::Base</a></span></h3>
107
- <p class="inherited"><span class='object_link'><a href="Draper/Base.html#DEFAULT_DENIED-constant" title="Draper::Base::DEFAULT_DENIED (constant)">DEFAULT_DENIED</a></span>, <span class='object_link'><a href="Draper/Base.html#FORCED_PROXY-constant" title="Draper::Base::FORCED_PROXY (constant)">FORCED_PROXY</a></span></p>
108
-
109
-
110
-
111
-
112
-
113
-
114
- <h2>Instance Attribute Summary</h2>
115
-
116
- <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Draper/Base.html" title="Draper::Base (class)">Draper::Base</a></span></h3>
117
- <p class="inherited"><span class='object_link'><a href="Draper/Base.html#context-instance_method" title="Draper::Base#context (method)">context</a></span>, <span class='object_link'><a href="Draper/Base.html#model-instance_method" title="Draper::Base#model (method)">model</a></span></p>
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
- <h2>Method Summary</h2>
127
-
128
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Draper/Base.html" title="Draper::Base (class)">Draper::Base</a></span></h3>
129
- <p class="inherited"><span class='object_link'><a href="Draper/Base.html#allows-class_method" title="Draper::Base.allows (method)">allows</a></span>, <span class='object_link'><a href="Draper/Base.html#decorate-class_method" title="Draper::Base.decorate (method)">decorate</a></span>, <span class='object_link'><a href="Draper/Base.html#decorates-class_method" title="Draper::Base.decorates (method)">decorates</a></span>, <span class='object_link'><a href="Draper/Base.html#denies-class_method" title="Draper::Base.denies (method)">denies</a></span>, <span class='object_link'><a href="Draper/Base.html#find-class_method" title="Draper::Base.find (method)">find</a></span>, <span class='object_link'><a href="Draper/Base.html#helpers-instance_method" title="Draper::Base#helpers (method)">#helpers</a></span>, <span class='object_link'><a href="Draper/Base.html#initialize-instance_method" title="Draper::Base#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="Draper/Base.html#lazy_helpers-class_method" title="Draper::Base.lazy_helpers (method)">lazy_helpers</a></span>, <span class='object_link'><a href="Draper/Base.html#model_name-class_method" title="Draper::Base.model_name (method)">model_name</a></span>, <span class='object_link'><a href="Draper/Base.html#to_model-instance_method" title="Draper::Base#to_model (method)">#to_model</a></span></p>
130
- <div id="constructor_details" class="method_details_list">
131
- <h2>Constructor Details</h2>
132
-
133
- <p class="notice">This class inherits a constructor from <span class='object_link'><a href="Draper/Base.html#initialize-instance_method" title="Draper::Base#initialize (method)">Draper::Base</a></span></p>
134
-
135
- </div>
136
-
137
-
138
- </div>
139
-
140
- <div id="footer">
141
- Generated on Wed Aug 31 23:53:09 2011 by
142
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
143
- 0.7.2 (ruby-1.8.7).
144
- </div>
145
-
146
- </body>
147
- </html>