Module: Rack::Reqorder
- Extended by:
- GrapeRecognizer, RailsRecognizer, SinatraRecognizer
- Defined in:
- lib/rack/reqorder.rb,
lib/rack/reqorder/logger.rb,
lib/rack/reqorder/monitor.rb,
lib/rack/reqorder/version.rb,
lib/rack/reqorder/route_recognizers.rb,
lib/rack/reqorder/services/backtrace_cleaner.rb
Defined Under Namespace
Modules: GrapeRecognizer, Models, Monitor, RailsRecognizer, SinatraRecognizer Classes: BacktraceCleaner, Configuration, Logger
Constant Summary collapse
- VERSION =
"0.6"
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
Methods included from GrapeRecognizer
grape_recognize_path, recognize_path
Methods included from SinatraRecognizer
recognize_path, sinatra_recognize_path
Methods included from RailsRecognizer
prefixes, rails_paths, rails_recognize_path, recognize_path, recognize_unknown_path
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
16 17 18 |
# File 'lib/rack/reqorder.rb', line 16 def configuration @configuration end |
Class Method Details
.boot! ⇒ Object
35 36 37 38 39 40 41 42 |
# 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! ⇒ Object
19 20 21 22 23 24 25 26 27 28 |
# 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| ... } ⇒ Object
30 31 32 33 |
# File 'lib/rack/reqorder.rb', line 30 def self.configure self.configuration ||= Configuration.new yield(configuration) end |