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

16 lines
206 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
private
2015-04-04 17:46:55 +00:00
def warden_scope
:api
end
end
end