lib/logster/configuration.rb in logster-1.2.5 vs lib/logster/configuration.rb in logster-1.2.6
- old
+ new
@@ -10,10 +10,11 @@
@current_context = lambda{ |_, &block| block.call }
@environments = [:development, :production]
@subdirectory = nil
@allow_grouping = false
- if defined?(::Rails) && ::Rails.env.production?
+
+ if defined?(::Rails) && defined?(::Rails.env) && ::Rails.env.production?
@allow_grouping = true
end
end
def subdirectory