Sha256: 8dfb09f3f0ce250f49372d35d9e50be28685d8ea0d4cea41c6b00b247f86bc3c
Contents?: true
Size: 518 Bytes
Versions: 2
Compression:
Stored size: 518 Bytes
Contents
module Integral # List view-level logic class ListDecorator < Draper::Decorator delegate_all # @return [String] URL to backend activity def activity_url(activity_id) # Integral::Engine.routes.url_helpers.activity_backend_user_url(object.id, activity_id) end # @return [String] URL to backend list page def backend_url Integral::Engine.routes.url_helpers.backend_list_url(self) end # @return [String] formatted title def title object.title end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
integral-1.3.0 | app/decorators/integral/list_decorator.rb |
integral-1.2.0 | app/decorators/integral/list_decorator.rb |