module Rack::Reqorder
Constants
- VERSION
Attributes
configuration[RW]
Public Class Methods
boot!()
click to toggle source
# File lib/rack/reqorder.rb, line 35 def self.boot! self.configuration.validate! Mongoid.load!( self.configuration.mongoid_yml, self.configuration.environment ) end
clean_database!()
click to toggle source
# File lib/rack/reqorder.rb, line 19 def self.clean_database! [ :AppException, :AppFault, :HttpRequest, :HttpResponse, :Recording, :RoutePath, :Statistic ].each do |model| Object.const_get("#{self}::Models::#{model.to_s}").delete_all end return true end
configure() { |configuration| ... }
click to toggle source
# File lib/rack/reqorder.rb, line 30 def self.configure self.configuration ||= Configuration.new yield(configuration) end