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



147
148
149
# File 'app/lib/actions/helpers/humanizer.rb', line 147

def humanized_name
  _('content view')
end


151
152
153
154
155
# File 'app/lib/actions/helpers/humanizer.rb', line 151

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

#nameObject



143
144
145
# File 'app/lib/actions/helpers/humanizer.rb', line 143

def name
  :content_view
end