Module: Janus

Defined in:
lib/janus/strategies/remote_authenticatable.rb,
lib/janus.rb,
lib/janus/hooks.rb,
lib/janus/rails.rb,
lib/janus/config.rb,
lib/janus/manager.rb,
lib/janus/strategies.rb,
lib/janus/models/base.rb,
lib/janus/test_helper.rb,
lib/janus/strategies/base.rb,
lib/janus/models/trackable.rb,
lib/janus/models/confirmable.rb,
lib/janus/models/rememberable.rb,
lib/janus/models/remote_token.rb,
lib/janus/controllers/helpers.rb,
lib/janus/strategies/rememberable.rb,
lib/janus/controllers/url_helpers.rb,
lib/generators/janus/install_generator.rb,
lib/janus/controllers/internal_helpers.rb,
lib/janus/models/remote_authenticatable.rb,
lib/generators/janus/resource_generator.rb,
lib/janus/models/database_authenticatable.rb

Overview

IMPROVE: redirect to clean the URL from the auth_token.

Defined Under Namespace

Modules: Config, Generators, Helpers, Hooks, InternalHelpers, Models, Strategies, TestHelper, UrlHelpers Classes: ConfirmationsController, Mailer, Manager, NotAuthenticated, PasswordsController, RegistrationsController, SessionsController

Class Method Summary (collapse)

Class Method Details

+ (Object) config {|Janus::Config| ... }

Yields:



44
45
46
47
# File 'lib/janus.rb', line 44

def self.config
  yield(Janus::Config) if block_given?
  Janus::Config
end

+ (Object) scope_for(user_or_scope)



36
37
38
39
40
41
42
# File 'lib/janus.rb', line 36

def self.scope_for(user_or_scope)
  case user_or_scope
  when Symbol then user_or_scope
  when String then user_or_scope.to_sym
  else user_or_scope.class.name.underscore.to_sym
  end
end