Sha256: 28ef48b3b5f7e358d42d27f2e5da107f72da36e2299b2ed72cc474dc75873d45

Contents?: true

Size: 391 Bytes

Versions: 1

Compression:

Stored size: 391 Bytes

Contents

module ExvoAuth::PathHelpers
  def self.included(base)
    if base.respond_to?(:helper_method)
      base.helper_method :auth_sign_out_url, :auth_sign_in_path
    end
  end
    
  # Redirect users after logout there
  def auth_sign_out_url
    ExvoAuth::Config.host + "/users/sign_out"
  end

  # Redirect users to sign in / sign up
  def auth_sign_in_path
    "/auth/interactive"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
exvo-auth-0.2.2 lib/exvo_auth/path_helpers.rb