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
@@ -80,9 +80,6 @@ gem "state_machine" | @@ -80,9 +80,6 @@ gem "state_machine" | ||
80 | # Issue tags | 80 | # Issue tags |
81 | gem "acts-as-taggable-on", "2.3.3" | 81 | gem "acts-as-taggable-on", "2.3.3" |
82 | 82 | ||
83 | -# Decorators | ||
84 | -gem "draper" | ||
85 | - | ||
86 | # Background jobs | 83 | # Background jobs |
87 | gem 'slim' | 84 | gem 'slim' |
88 | gem 'sinatra', require: nil | 85 | gem 'sinatra', require: nil |
Gemfile.lock
@@ -133,10 +133,6 @@ GEM | @@ -133,10 +133,6 @@ GEM | ||
133 | railties (~> 3.1) | 133 | railties (~> 3.1) |
134 | warden (~> 1.2.1) | 134 | warden (~> 1.2.1) |
135 | diff-lcs (1.2.1) | 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 | email_spec (1.4.0) | 136 | email_spec (1.4.0) |
141 | launchy (~> 2.1) | 137 | launchy (~> 2.1) |
142 | mail (~> 2.2) | 138 | mail (~> 2.2) |
@@ -379,7 +375,6 @@ GEM | @@ -379,7 +375,6 @@ GEM | ||
379 | redis-store (1.1.3) | 375 | redis-store (1.1.3) |
380 | redis (>= 2.2.0) | 376 | redis (>= 2.2.0) |
381 | ref (1.0.4) | 377 | ref (1.0.4) |
382 | - request_store (1.0.5) | ||
383 | rest-client (1.6.7) | 378 | rest-client (1.6.7) |
384 | mime-types (>= 1.16) | 379 | mime-types (>= 1.16) |
385 | rspec (2.13.0) | 380 | rspec (2.13.0) |
@@ -512,7 +507,6 @@ DEPENDENCIES | @@ -512,7 +507,6 @@ DEPENDENCIES | ||
512 | coveralls | 507 | coveralls |
513 | database_cleaner | 508 | database_cleaner |
514 | devise | 509 | devise |
515 | - draper | ||
516 | email_spec | 510 | email_spec |
517 | enumerize | 511 | enumerize |
518 | factory_girl_rails | 512 | factory_girl_rails |
app/decorators/application_decorator.rb
@@ -1,29 +0,0 @@ | @@ -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 |