lib/exception-track/configuration.rb in exception-track-0.6.2 vs lib/exception-track/configuration.rb in exception-track-1.0.0
- old
+ new
@@ -6,9 +6,10 @@
# default: [:development, :production]
attr_accessor :environments
def enabled_env?(env)
return false if env.blank?
+
environments.include?(env.to_sym)
end
end
end