Class: Actions::Helpers::Humanizer::ActivationKeyResource

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



92
93
94
# File 'app/lib/actions/helpers/humanizer.rb', line 92

def humanized_name
  _('activation key')
end


96
97
98
99
100
# File 'app/lib/actions/helpers/humanizer.rb', line 96

def link(data)
  if (ackey_id = fetch_data(data, :activation_key, :id))
    "/activation_keys/#{ackey_id}/info"
  end
end

#nameObject



88
89
90
# File 'app/lib/actions/helpers/humanizer.rb', line 88

def name
  :activation_key
end