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
195
196
197
|
# File 'app/lib/actions/helpers/humanizer.rb', line 195
def humanized_name
_('organization')
end
|
#link(data) ⇒ Object
199
200
201
202
203
|
# File 'app/lib/actions/helpers/humanizer.rb', line 199
def link(data)
if (org_id = fetch_data(data, :organization, :id))
"/organizations/#{org_id}/edit"
end
end
|
#name ⇒ Object
191
192
193
|
# File 'app/lib/actions/helpers/humanizer.rb', line 191
def name
:organization
end
|