lib/zuul.rb in zuul-0.1.1 vs lib/zuul.rb in zuul-0.2.0
- old
+ new
@@ -1,8 +1,17 @@
-require 'zuul/valid_roles'
-require 'zuul/restrict_access'
+require 'zuul/exceptions'
+require 'zuul/configuration'
-# ActiveRecord::Base.send(:include, Zuul::ValidRoles::ClassMethods)
+module Zuul
+ mattr_reader :configuration
+ @@configuration = Zuul::Configuration.new
-Class.class_eval do
- include Zuul::ValidRoles::ClassMethods
+ def self.configure(&block)
+ @@configuration.configure &block
+ end
end
+
+require 'zuul/context'
+require 'zuul/active_record'
+require 'zuul/action_controller'
+
+require 'zuul/railtie' if defined?(Rails)