Sha256: 2c406634bb76e5c37f165ed124c6ca41c1341eadce9e68ef9e91ab9af49e26e2

Contents?: true

Size: 414 Bytes

Versions: 4

Compression:

Stored size: 414 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_in_path, :sign_up_path, :sign_out_url
  end
    
  module InstanceMethods
    def find_user_by_id(id)
      User.find(id)
    end

    def current_url
      request.url if request.get?
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
exvo-auth-0.4.3 lib/exvo_auth/controllers/rails.rb
exvo-auth-0.4.2 lib/exvo_auth/controllers/rails.rb
exvo-auth-0.4.1 lib/exvo_auth/controllers/rails.rb
exvo-auth-0.4.0 lib/exvo_auth/controllers/rails.rb