lib/dashing.rb in dashing-rails-1.0.1 vs lib/dashing.rb in dashing-rails-1.0.2
- old
+ new
@@ -8,10 +8,10 @@
def config
self.configuration ||= Configuration.new
end
def configure
- yield config
+ yield config if block_given?
end
def first_dashboard
files = Dir[Rails.root.join(config.dashboards_path, '*')].collect { |f| File.basename(f, '.*') }
files.sort.first