lib/arcadex/create.rb in arcadex-1.1.3 vs lib/arcadex/create.rb in arcadex-1.2.0

- old
+ new

@@ -9,14 +9,15 @@ return token end #Arcadex.create_token(instance.tokens.new,exp_minutes,request) #Put any token in here to set it's values. Usually when its first created - def self.set_token(token,exp_minutes,request) + def self.set_token(token,exp_minutes,request,max_uses) token.first_ip_address = request.remote_ip token.current_ip_address = request.remote_ip token.times_used = 0 token.expiration_minutes = exp_minutes + token.max_uses = max_uses token.save return token end end \ No newline at end of file