Permalink
Browse files

remove draper

  • Loading branch information...
1 parent 6c20680 commit 07c82cf77629c36548796051f6cbbcb01fd1954e @dzaporozhets dzaporozhets committed Apr 5, 2013
Showing with 0 additions and 38 deletions.
  1. +0 −3 Gemfile
  2. +0 −6 Gemfile.lock
  3. +0 −29 app/decorators/application_decorator.rb
View
@@ -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
View
@@ -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
@@ -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

0 comments on commit 07c82cf

Please sign in to comment.