benchmark/associations.rb in bonsai-1.1.4 vs benchmark/associations.rb in bonsai-1.1.5
- old
+ new
@@ -1,9 +1,9 @@
require 'lib/bonsai'
require 'benchmark'
Bonsai.root_dir = File.dirname(__FILE__) + "/../spec/support"
-Bonsai.configure {|config| config[:enable_logging] = false }
+Bonsai.config = { :enable_logging => false }
page = Bonsai::Page.find("about-us/history")
Benchmark.bm do |b|
b.report "all" do
\ No newline at end of file