Sha256: 0ca8bd3be2151e05cd96b0eb4af00df0ac57cab0a1a66398d22f1942390ad1ad
Contents?: true
Size: 556 Bytes
Versions: 15
Compression:
Stored size: 556 Bytes
Contents
module ExvoAuth::Controllers::Merb def self.included(base) base.send :include, ExvoAuth::Controllers::Base base.send :include, InstanceMethods end module InstanceMethods def authenticate_user! super throw :halt unless signed_in? end protected def request_method request.method.to_s.upcase end def basic_authentication_method_name :basic_authentication end def redirect_to(*args) redirect(*args) end def find_user_by_id(id) User[id] end end end
Version data entries
15 entries across 15 versions & 1 rubygems