Class: Integral::ListDecorator

Inherits:
Draper::Decorator
  • Object
show all
Defined in:
app/decorators/integral/list_decorator.rb

Overview

List view-level logic

Instance Method Summary collapse

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

#titleString



17
18
19
# File 'app/decorators/integral/list_decorator.rb', line 17

def title
  object.title
end

#urlString



12
13
14
# File 'app/decorators/integral/list_decorator.rb', line 12

def url
  Integral::Engine.routes.url_helpers.backend_list_url(self)
end