Sha256: fa7765d19ecde459e77bbe9bd541649ebe039b846d39c5cfbd0d01a16aa2706e

Contents?: true

Size: 871 Bytes

Versions: 10

Compression:

Stored size: 871 Bytes

Contents

A few non backwards compatible changes have been made that are really easy to fix.

If you are upgrading a oauth_consumer from 0.3.x to 0.4.x add the following line to your consumer_token model:
  
  belongs_to :user

So it looks like this:

  require 'oauth/models/consumers/token'
  class ConsumerToken < ActiveRecord::Base
    include Oauth::Models::Consumers::Token
    belongs_to :user
  end

You should also upgrade your oauth_consumer_controller as we no longer call login_required in the library. This should make it easier for implementing it with other authentication frameworks:

  require 'oauth/controllers/consumer_controller'
  class OauthConsumersController < ApplicationController
    include Oauth::Controllers::ConsumerController
    # Replace this with the equivalent for your authentication framework
    before_filter :login_required, :only=>:index

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
oauth-plugin-0.4.0.rc2 UPGRADE.rdoc
oauth-plugin-0.4.0.rc1 UPGRADE.rdoc
oauth-plugin-0.4.0.pre7 UPGRADE.rdoc
oauth-plugin-0.4.0.pre6 UPGRADE.rdoc
oauth-plugin-0.4.0.pre5 UPGRADE.rdoc
insrc-oauth-plugin-0.4.0.pre6 UPGRADE.rdoc
insrc-oauth-plugin-0.4.0.pre5 UPGRADE.rdoc
le1t0-oauth-plugin-0.4.0.pre4.001 UPGRADE.rdoc
oauth-plugin-0.4.0.pre4 UPGRADE.rdoc
oauth-plugin-0.4.0.pre3 UPGRADE.rdoc