# File 'app/models/cadinsor/api_key.rb', line 13defexpired?returntrueifself.created_at<Cadinsor::Engine.config.key_expiry_time_in_mins.to_i.minutes.agofalseend
#generate_key! ⇒ Object
6
7
8
9
10
11
# File 'app/models/cadinsor/api_key.rb', line 6defgenerate_key!self.key=SecureRandom.urlsafe_base64(32)generate_key!ifCadinsor::ApiKey.find_by_key(self.key)# Return object for chaining requests
selfend