lib/para/components_configuration.rb in para-0.7.1 vs lib/para/components_configuration.rb in para-0.7.2
- old
+ new
@@ -3,12 +3,17 @@
class UndefinedComponentTypeError < StandardError
end
def draw(&block)
return unless components_installed?
- eager_load_components!
- instance_eval(&block)
- build
+ Para::LogConfig.with_log_level(:fatal) do
+ log_level = Rails.logger.level
+ Rails.logger.level = :fatal
+
+ eager_load_components!
+ instance_eval(&block)
+ build
+ end
end
def section(*args, &block)
sections << Section.new(*args, &block)
end