lib/vidibus-user.rb in vidibus-user-0.0.10 vs lib/vidibus-user.rb in vidibus-user-1.0.0
- old
+ new
@@ -1,20 +1,3 @@
-require "rails"
-
-$:.unshift(File.join(File.dirname(__FILE__), "vidibus"))
-require "user"
-
-module Vidibus
- module User
- class Error < StandardError; end
- class NoRealmError < Error; end
-
- class Engine < ::Rails::Engine
-
- # Add warden to rack stack and use connector strategy.
- config.app_middleware.use Warden::Manager do |manager|
- manager.default_strategies :connector
- manager.default_scope = :user
- end
- end
- end
-end
+require 'warden'
+require 'vidibus-service'
+require 'vidibus/user'