lib/janus.rb in janus-0.7.0 vs lib/janus.rb in janus-0.8.0

- old
+ new

@@ -1,6 +1,7 @@ require 'active_support/core_ext/class' +require 'janus/version' require 'janus/config' require 'janus/hooks' require 'janus/strategies' require 'janus/manager' require 'janus/rails' if defined?(Rails) @@ -23,15 +24,17 @@ autoload :Confirmable, 'janus/models/confirmable' autoload :Rememberable, 'janus/models/rememberable' autoload :RemoteAuthenticatable, 'janus/models/remote_authenticatable' autoload :RemoteToken, 'janus/models/remote_token' autoload :Trackable, 'janus/models/trackable' + autoload :TokenAuthenticatable, 'janus/models/token_authenticatable' end module Strategies autoload :Base, 'janus/strategies/base' autoload :Rememberable, 'janus/strategies/rememberable' autoload :RemoteAuthenticatable, 'janus/strategies/remote_authenticatable' + autoload :TokenAuthenticatable, 'janus/strategies/token_authenticatable' end def self.scope_for(user_or_scope) case user_or_scope when Symbol then user_or_scope