Class: Actions::Helpers::Humanizer::OrganizationResource
- Inherits:
-
Resource
- Object
- Resource
- Actions::Helpers::Humanizer::OrganizationResource
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
202
203
204
|
# File 'app/lib/actions/helpers/humanizer.rb', line 202
def humanized_name
_('organization')
end
|
#link(data) ⇒ Object
206
207
208
209
210
|
# File 'app/lib/actions/helpers/humanizer.rb', line 206
def link(data)
if org_id = fetch_data(data, :organization, :id)
"/organizations/#{org_id}/edit"
end
end
|
#name ⇒ Object
198
199
200
|
# File 'app/lib/actions/helpers/humanizer.rb', line 198
def name
:organization
end
|