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

17 lines
230 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
end
end