Sha256: 7c7827dae194e0c58582561b04f109d6790e2497bc39efea4dc814675af4d3da
Contents?: true
Size: 515 Bytes
Versions: 9
Compression:
Stored size: 515 Bytes
Contents
module ExvoAuth::Controllers::Rails def self.included(base) base.send :include, ExvoAuth::Controllers::Base base.send :include, InstanceMethods base.helper_method :current_user, :signed_in?, :sign_up_path, :sign_in_path end module InstanceMethods protected def basic_authentication_method_name :authenticate_or_request_with_http_basic end def find_user_by_id(id) User.find(id) end def current_url request.url if request.get? end end end
Version data entries
9 entries across 9 versions & 1 rubygems