Class: Actions::Helpers::Humanizer::ContentViewResource

Inherits:
Resource
  • Object
show all
Defined in:
app/lib/actions/helpers/humanizer.rb

Instance Method Summary collapse

Methods inherited from Resource

#humanized_value, inherited

Instance Method Details

#humanized_nameObject



154
155
156
# File 'app/lib/actions/helpers/humanizer.rb', line 154

def humanized_name
  _('content view')
end


158
159
160
161
162
# File 'app/lib/actions/helpers/humanizer.rb', line 158

def link(data)
  if content_view_id = fetch_data(data, :content_view, :id)
    "#/content_views/#{content_view_id}/versions"
  end
end

#nameObject



150
151
152
# File 'app/lib/actions/helpers/humanizer.rb', line 150

def name
  :content_view
end