Module: HasTokenable::Concern::InstanceMethods

Defined in:
lib/has_tokenable/concern.rb

Overview

ClassMethods

Instance Method Summary collapse

Instance Method Details

#to_paramObject

Returns the resource’s token



63
64
65
# File 'lib/has_tokenable/concern.rb', line 63

def to_param
  self.send(self.class.has_tokenable_options[:param_name])
end