Sha256: 5a4319938e1afc6612a3d5567beadae80a9f70cc62e052aafe0f52fed0239cf2

Contents?: true

Size: 329 Bytes

Versions: 21

Compression:

Stored size: 329 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

21 entries across 11 versions & 5 rubygems

Version Path
houston-oauth-plugin-0.5.1 generators/oauth_consumer/templates/consumer_token.rb
houston-oauth-plugin-0.5.1 lib/generators/active_record/oauth_consumer_templates/consumer_token.rb
oauth_consumer-0.1.3 lib/generators/active_record/oauth_consumer_templates/consumer_token.rb
oauth_consumer-0.1.3 generators/oauth_consumer/templates/consumer_token.rb
panjiva-oauth-plugin-0.4.1 generators/oauth_consumer/templates/consumer_token.rb
panjiva-oauth-plugin-0.4.1 lib/generators/active_record/oauth_consumer_templates/consumer_token.rb
oauth_consumer-0.1.2 lib/generators/active_record/oauth_consumer_templates/consumer_token.rb
oauth_consumer-0.1.2 generators/oauth_consumer/templates/consumer_token.rb
oauth_consumer-0.1.1 lib/generators/active_record/oauth_consumer_templates/consumer_token.rb
oauth_consumer-0.1.1 generators/oauth_consumer/templates/consumer_token.rb
oauth_consumer-0.1.0 lib/generators/active_record/oauth_consumer_templates/consumer_token.rb
oauth_consumer-0.1.0 generators/oauth_consumer/templates/consumer_token.rb
oauth-plugin-0.5.1 generators/oauth_consumer/templates/consumer_token.rb
oauth-plugin-0.5.1 lib/generators/active_record/oauth_consumer_templates/consumer_token.rb
oauth-plugin-0.5.0 generators/oauth_consumer/templates/consumer_token.rb
oauth-plugin-0.5.0 lib/generators/active_record/oauth_consumer_templates/consumer_token.rb
oauth-provider-0.5.0rc1 generators/oauth_consumer/templates/consumer_token.rb
oauth-plugin-0.4.1 generators/oauth_consumer/templates/consumer_token.rb
oauth-plugin-0.4.1 lib/generators/active_record/oauth_consumer_templates/consumer_token.rb
oauth-plugin-0.4.0 lib/generators/active_record/oauth_consumer_templates/consumer_token.rb