Class: Actions::Helpers::Humanizer::OrganizationResource

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



202
203
204
# File 'app/lib/actions/helpers/humanizer.rb', line 202

def humanized_name
  _('organization')
end


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

#nameObject



198
199
200
# File 'app/lib/actions/helpers/humanizer.rb', line 198

def name
  :organization
end