lib/token_action/concerns/token_generator.rb
# Returns a new alphanumeric token.
#
# @param [String,Symbol] column an attribute
# @return [String] a random alphanumeric string
# @see Devise::Models::Authenticatable::ClassMethods
Returns a new alphanumeric token.
Returns a new alphanumeric token .
def generate_token(column)
        loop do
          token = TokenAction.friendly_token
          break token unless to_adapter.find_first({ column => token })
        end
      end
def generate_token ( column ) loop do token = TokenAction . friendly_token break token unless to_adapter . find_first ( { column => token } ) end end
Returns a new alphanumeric token.
Returns a new alphanumeric token .
a random alphanumeric string
a random alphanumeric string
String
column
<not_specific>
<not_specific>
column an attribute
column an attribute
see
None