2015-04-04 17:46:55 +00:00
|
|
|
require 'authentication/warden_authentication'
|
|
|
|
|
2014-03-05 09:05:45 +00:00
|
|
|
module Api
|
2015-04-04 17:46:55 +00:00
|
|
|
class BaseController < ActionController::Base
|
2014-03-05 09:05:45 +00:00
|
|
|
|
2015-04-04 17:46:55 +00:00
|
|
|
include WardenAuthentication
|
2014-03-05 09:05:45 +00:00
|
|
|
|
|
|
|
private
|
|
|
|
|
2015-04-04 17:46:55 +00:00
|
|
|
def warden_scope
|
|
|
|
:api
|
2014-03-05 09:05:45 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|