summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-05 21:21:53 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-05 21:21:53 +0300
commit07c82cf77629c36548796051f6cbbcb01fd1954e (patch)
treee7e895f7ed1baadf209252a54497f98af5a83985 /app
parent6c206805ae445b7052d98640cb0083256d836db1 (diff)
downloadgitlab-ce-07c82cf77629c36548796051f6cbbcb01fd1954e.tar.gz
remove draper
Diffstat (limited to 'app')
-rw-r--r--app/decorators/application_decorator.rb29
1 files changed, 0 insertions, 29 deletions
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