asciinema.org/app/controllers/api/base_controller.rb

21 lines
284 B
Ruby
Raw Normal View History

2015-04-04 17:46:55 +00:00
require 'authentication/warden_authentication'
module Api
2015-04-04 17:46:55 +00:00
class BaseController < ActionController::Base
2015-04-04 17:46:55 +00:00
include WardenAuthentication
include RouteHelper
private
2015-04-04 17:46:55 +00:00
def warden_scope
:api
end
def warden_strategies
[:api_token]
end
end
end