Class: Actions::Helpers::Humanizer::ContentViewResource
- Inherits:
-
Resource
- Object
- Resource
- Actions::Helpers::Humanizer::ContentViewResource
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_name ⇒ Object
154
155
156
|
# File 'app/lib/actions/helpers/humanizer.rb', line 154
def humanized_name
_('content view')
end
|
#link(data) ⇒ Object
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
|
#name ⇒ Object
150
151
152
|
# File 'app/lib/actions/helpers/humanizer.rb', line 150
def name
:content_view
end
|