lib/logster/configuration.rb in logster-1.3.1 vs lib/logster/configuration.rb in logster-1.3.2
- old
+ new
@@ -1,25 +1,25 @@
-module Logster
- class Configuration
- attr_accessor :current_context, :allow_grouping, :environments,
- :application_version, :web_title
-
- attr_writer :subdirectory
-
- def initialize
- # lambda |env,block|
- @current_context = lambda{ |_, &block| block.call }
- @environments = [:development, :production]
- @subdirectory = nil
-
- @allow_grouping = false
-
- if defined?(::Rails) && defined?(::Rails.env) && ::Rails.env.production?
- @allow_grouping = true
- end
- end
-
- def subdirectory
- @subdirectory || '/logs'
- end
- end
-end
+module Logster
+ class Configuration
+ attr_accessor :current_context, :allow_grouping, :environments,
+ :application_version, :web_title
+
+ attr_writer :subdirectory
+
+ def initialize
+ # lambda |env,block|
+ @current_context = lambda{ |_, &block| block.call }
+ @environments = [:development, :production]
+ @subdirectory = nil
+
+ @allow_grouping = false
+
+ if defined?(::Rails) && defined?(::Rails.env) && ::Rails.env.production?
+ @allow_grouping = true
+ end
+ end
+
+ def subdirectory
+ @subdirectory || '/logs'
+ end
+ end
+end