16 lines
206 B
Ruby
16 lines
206 B
Ruby
require 'authentication/warden_authentication'
|
|
|
|
module Api
|
|
class BaseController < ActionController::Base
|
|
|
|
include WardenAuthentication
|
|
|
|
private
|
|
|
|
def warden_scope
|
|
:api
|
|
end
|
|
|
|
end
|
|
end
|