lib/dashing.rb in dashing-rails-1.0.3 vs lib/dashing.rb in dashing-rails-2.0.0

- old
+ new

@@ -12,10 +12,10 @@ def configure yield config if block_given? end def first_dashboard - files = Dir[Rails.root.join(config.dashboards_path, '*')].collect { |f| File.basename(f, '.*') } + files = Dir[Rails.root.join(config.dashboards_views_path, '*')].collect { |f| File.basename(f, '.*') } files.sort.first end def send_event(id, data) redis.publish("#{Dashing.config.redis_namespace}.create", data.merge(id: id, updatedAt: Time.now.utc.to_i).to_json)