Commit 07c82cf77629c36548796051f6cbbcb01fd1954e
1 parent
6c206805
Exists in
master
and in
4 other branches
remove draper
Showing
3 changed files
with
0 additions
and
38 deletions
Show diff stats
Gemfile
Gemfile.lock
... | ... | @@ -133,10 +133,6 @@ GEM |
133 | 133 | railties (~> 3.1) |
134 | 134 | warden (~> 1.2.1) |
135 | 135 | diff-lcs (1.2.1) |
136 | - draper (1.1.0) | |
137 | - actionpack (>= 3.0) | |
138 | - activesupport (>= 3.0) | |
139 | - request_store (~> 1.0.3) | |
140 | 136 | email_spec (1.4.0) |
141 | 137 | launchy (~> 2.1) |
142 | 138 | mail (~> 2.2) |
... | ... | @@ -379,7 +375,6 @@ GEM |
379 | 375 | redis-store (1.1.3) |
380 | 376 | redis (>= 2.2.0) |
381 | 377 | ref (1.0.4) |
382 | - request_store (1.0.5) | |
383 | 378 | rest-client (1.6.7) |
384 | 379 | mime-types (>= 1.16) |
385 | 380 | rspec (2.13.0) |
... | ... | @@ -512,7 +507,6 @@ DEPENDENCIES |
512 | 507 | coveralls |
513 | 508 | database_cleaner |
514 | 509 | devise |
515 | - draper | |
516 | 510 | email_spec |
517 | 511 | enumerize |
518 | 512 | factory_girl_rails | ... | ... |
app/decorators/application_decorator.rb
... | ... | @@ -1,29 +0,0 @@ |
1 | -class ApplicationDecorator < Draper::Decorator | |
2 | - delegate_all | |
3 | - # Lazy Helpers | |
4 | - # PRO: Call Rails helpers without the h. proxy | |
5 | - # ex: number_to_currency(model.price) | |
6 | - # CON: Add a bazillion methods into your decorator's namespace | |
7 | - # and probably sacrifice performance/memory | |
8 | - # | |
9 | - # Enable them by uncommenting this line: | |
10 | - # lazy_helpers | |
11 | - | |
12 | - # Shared Decorations | |
13 | - # Consider defining shared methods common to all your models. | |
14 | - # | |
15 | - # Example: standardize the formatting of timestamps | |
16 | - # | |
17 | - # def formatted_timestamp(time) | |
18 | - # h.content_tag :span, time.strftime("%a %m/%d/%y"), | |
19 | - # class: 'timestamp' | |
20 | - # end | |
21 | - # | |
22 | - # def created_at | |
23 | - # formatted_timestamp(model.created_at) | |
24 | - # end | |
25 | - # | |
26 | - # def updated_at | |
27 | - # formatted_timestamp(model.updated_at) | |
28 | - # end | |
29 | -end |