The code powering m.abunchtell.com https://m.abunchtell.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

15 line
320 B

  1. class ApiController < ApplicationController
  2. protect_from_forgery with: :null_session
  3. skip_before_filter :verify_authenticity_token
  4. protected
  5. def current_resource_owner
  6. User.find(doorkeeper_token.resource_owner_id) if doorkeeper_token
  7. end
  8. def current_user
  9. super || current_resource_owner
  10. end
  11. end