Sha256: c7de8b4324c96e72782a8ce91f1117aefff9476d43d814952dd66b0ea6058482

Contents?: true

Size: 335 Bytes

Versions: 19

Compression:

Stored size: 335 Bytes

Contents

require 'oauth/models/consumers/token'
class ConsumerToken < ActiveRecord::Base
  include Oauth::Models::Consumers::Token
  
  # You can safely remove this callback if you don't allow login from any of your services
  before_create :create_user
  
  # Modify this with class_name etc to match your application
  belongs_to :user
  
end

Version data entries

19 entries across 10 versions & 3 rubygems

Version Path
oauth-plugin-0.4.0.rc2 lib/generators/active_record/oauth_consumer_templates/consumer_token.rb
oauth-plugin-0.4.0.rc2 generators/oauth_consumer/templates/consumer_token.rb
oauth-plugin-0.4.0.rc1 lib/generators/active_record/oauth_consumer_templates/consumer_token.rb
oauth-plugin-0.4.0.rc1 generators/oauth_consumer/templates/consumer_token.rb
oauth-plugin-0.4.0.pre7 generators/oauth_consumer/templates/consumer_token.rb
oauth-plugin-0.4.0.pre7 lib/generators/active_record/oauth_consumer_templates/consumer_token.rb
oauth-plugin-0.4.0.pre6 lib/generators/active_record/oauth_consumer_templates/consumer_token.rb
oauth-plugin-0.4.0.pre6 generators/oauth_consumer/templates/consumer_token.rb
oauth-plugin-0.4.0.pre5 generators/oauth_consumer/templates/consumer_token.rb
oauth-plugin-0.4.0.pre5 lib/generators/active_record/oauth_consumer_templates/consumer_token.rb
insrc-oauth-plugin-0.4.0.pre6 lib/generators/active_record/oauth_consumer_templates/consumer_token.rb
insrc-oauth-plugin-0.4.0.pre6 generators/oauth_consumer/templates/consumer_token.rb
insrc-oauth-plugin-0.4.0.pre5 generators/oauth_consumer/templates/consumer_token.rb
insrc-oauth-plugin-0.4.0.pre5 lib/generators/active_record/oauth_consumer_templates/consumer_token.rb
le1t0-oauth-plugin-0.4.0.pre4.001 lib/generators/active_record/oauth_consumer_templates/consumer_token.rb
le1t0-oauth-plugin-0.4.0.pre4.001 generators/oauth_consumer/templates/consumer_token.rb
oauth-plugin-0.4.0.pre4 generators/oauth_consumer/templates/consumer_token.rb
oauth-plugin-0.4.0.pre4 lib/generators/active_record/oauth_consumer_templates/consumer_token.rb
oauth-plugin-0.4.0.pre3 lib/generators/active_record/oauth_consumer_templates/consumer_token.rb