Class: Integral::ListDecorator
- Inherits:
-
Draper::Decorator
- Object
- Draper::Decorator
- Integral::ListDecorator
- Defined in:
- app/decorators/integral/list_decorator.rb
Overview
List view-level logic
Instance Method Summary collapse
-
#activity_url(activity_id) ⇒ String
URL to backend activity.
-
#backend_url ⇒ String
URL to backend list page.
-
#title ⇒ String
Formatted title.
Instance Method Details
#activity_url(activity_id) ⇒ String
Returns URL to backend activity.
7 8 9 |
# File 'app/decorators/integral/list_decorator.rb', line 7 def activity_url(activity_id) # Integral::Engine.routes.url_helpers.activity_backend_user_url(object.id, activity_id) end |
#backend_url ⇒ String
Returns URL to backend list page.
12 13 14 |
# File 'app/decorators/integral/list_decorator.rb', line 12 def backend_url Integral::Engine.routes.url_helpers.backend_list_url(self) end |
#title ⇒ String
Returns formatted title.
17 18 19 |
# File 'app/decorators/integral/list_decorator.rb', line 17 def title object.title end |