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



195
196
197
# File 'app/lib/actions/helpers/humanizer.rb', line 195

def humanized_name
  _('organization')
end


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

#nameObject



191
192
193
# File 'app/lib/actions/helpers/humanizer.rb', line 191

def name
  :organization
end