Module: Spree::TokenResource::ClassMethods

Defined in:
lib/spree/token_resource.rb

Instance Method Summary collapse

Instance Method Details

#token_resourceObject



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

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