Commit 07c82cf7 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

remove draper

parent 6c206805
......@@ -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
......
......@@ -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
......
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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment