app/controllers/dashing/dashboards_controller.rb in dashing-rails-2.2.0 vs app/controllers/dashing/dashboards_controller.rb in dashing-rails-2.3.0

- old
+ new

@@ -18,10 +18,10 @@ def check_dashboard_name raise 'bad dashboard name' unless params[:name] =~ /\A[a-zA-z0-9_\-]+\z/ end def dashboard_path(name) - Rails.root.join(Dashing.config.dashboards_views_path, name) + Dashing.config.dashboards_views_path.call.join(name) end def template_not_found raise "Count not find template for dashboard '#{params[:name]}'. Define your dashboard in #{dashboard_path('')}" end