app/models/oa2c/oauth2_token.rb in oa2c-0.0.2 vs app/models/oa2c/oauth2_token.rb in oa2c-0.1.0

- old
+ new

@@ -8,10 +8,10 @@ field :token field :expires_at, type: Time belongs_to :user, class_name: Oa2c.user_model - belongs_to :client + belongs_to :client, class_name: "Oa2c::Client" before_validation :setup, on: :create validates :client, :expires_at, presence: true validates :token, presence: true, uniqueness: true