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.
-
#title ⇒ String
Formatted title.
-
#url ⇒ String
URL to backend list page.
Instance Method Details
#activity_url(activity_id) ⇒ String
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 |
#title ⇒ String
17 18 19 |
# File 'app/decorators/integral/list_decorator.rb', line 17 def title object.title end |
#url ⇒ String
12 13 14 |
# File 'app/decorators/integral/list_decorator.rb', line 12 def url Integral::Engine.routes.url_helpers.backend_list_url(self) end |