From 07c82cf77629c36548796051f6cbbcb01fd1954e Mon Sep 17 00:00:00 2001
From: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Date: Fri, 5 Apr 2013 21:21:53 +0300
Subject: [PATCH] remove draper

---
 Gemfile                                 |  3 ---
 Gemfile.lock                            |  6 -----
 app/decorators/application_decorator.rb | 29 -------------------------
 3 files changed, 38 deletions(-)
 delete mode 100644 app/decorators/application_decorator.rb

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
-- 
2.30.9