Sha256: 66ec4a69e755e8710b3819165b0a8e89e17b32f3d70d000dc45e2a1770e0eebb
Contents?: true
Size: 498 Bytes
Versions: 20
Compression:
Stored size: 498 Bytes
Contents
module SolidusBling class Account < ApplicationRecord has_many :payment_methods, dependent: :destroy has_many :shipping_methods, dependent: :destroy has_many :sellers, dependent: :destroy accepts_nested_attributes_for :payment_methods, :shipping_methods, :sellers def check_token return if client_id.blank? || client_secret.blank? || refresh_token.blank? return if (token_expires_in - 1.hour).utc > DateTime.now.utc Token.new.refresh self end end end
Version data entries
20 entries across 20 versions & 1 rubygems