summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Gemfile3
-rw-r--r--Gemfile.lock6
-rw-r--r--app/decorators/application_decorator.rb29
3 files changed, 0 insertions, 38 deletions
diff --git a/Gemfile b/Gemfile
index 791af6422d7..075c4d90d30 100644
--- a/Gemfile
+++ b/Gemfile
@@ -80,9 +80,6 @@ gem "state_machine"
# Issue tags
gem "acts-as-taggable-on", "2.3.3"
-# Decorators
-gem "draper"
-
# Background jobs
gem 'slim'
gem 'sinatra', require: nil
diff --git a/Gemfile.lock b/Gemfile.lock
index ac217c2e2da..f37d24fc719 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -133,10 +133,6 @@ GEM
railties (~> 3.1)
warden (~> 1.2.1)
diff-lcs (1.2.1)
- draper (1.1.0)
- actionpack (>= 3.0)
- activesupport (>= 3.0)
- request_store (~> 1.0.3)
email_spec (1.4.0)
launchy (~> 2.1)
mail (~> 2.2)
@@ -379,7 +375,6 @@ GEM
redis-store (1.1.3)
redis (>= 2.2.0)
ref (1.0.4)
- request_store (1.0.5)
rest-client (1.6.7)
mime-types (>= 1.16)
rspec (2.13.0)
@@ -512,7 +507,6 @@ DEPENDENCIES
coveralls
database_cleaner
devise
- draper
email_spec
enumerize
factory_girl_rails
diff --git a/app/decorators/application_decorator.rb b/app/decorators/application_decorator.rb
deleted file mode 100644
index b805b3479b8..00000000000
--- a/app/decorators/application_decorator.rb
+++ /dev/null
@@ -1,29 +0,0 @@
-class ApplicationDecorator < Draper::Decorator
- delegate_all
- # Lazy Helpers
- # PRO: Call Rails helpers without the h. proxy
- # ex: number_to_currency(model.price)
- # CON: Add a bazillion methods into your decorator's namespace
- # and probably sacrifice performance/memory
- #
- # Enable them by uncommenting this line:
- # lazy_helpers
-
- # Shared Decorations
- # Consider defining shared methods common to all your models.
- #
- # Example: standardize the formatting of timestamps
- #
- # def formatted_timestamp(time)
- # h.content_tag :span, time.strftime("%a %m/%d/%y"),
- # class: 'timestamp'
- # end
- #
- # def created_at
- # formatted_timestamp(model.created_at)
- # end
- #
- # def updated_at
- # formatted_timestamp(model.updated_at)
- # end
-end