Class: Integral::ImageDecorator
- Inherits:
-
Draper::Decorator
- Object
- Draper::Decorator
- Integral::ImageDecorator
- Defined in:
- app/decorators/integral/image_decorator.rb
Overview
Image view-level logic
Instance Method Summary collapse
-
#activity_url(activity_id) ⇒ String
URL to backend activity.
-
#backend_url ⇒ String
URL to backend Image page.
Instance Method Details
#activity_url(activity_id) ⇒ String
Returns URL to backend activity.
7 8 9 |
# File 'app/decorators/integral/image_decorator.rb', line 7 def activity_url(activity_id) # Integral::Engine.routes.url_helpers.activity_backend_img_url(object.id, activity_id) end |