Module: Spree::Core::TokenResource::ClassMethods

Defined in:
lib/spree/core/token_resource.rb

Instance Method Summary collapse

Instance Method Details

#token_resourceObject


5
6
7
8
9
# File 'lib/spree/core/token_resource.rb', line 5

def token_resource
  has_one :tokenized_permission, :as => :permissable
  delegate :token, :to => :tokenized_permission, :allow_nil => true
  after_create :create_token
end