gottfrois/dashing-rails

View on GitHub
lib/generators/templates/initializer.rb

Summary

Maintainability
A
0 mins
Test Coverage
# Use this hook to configure Dashing bahaviors.
Dashing.configure do |config|
  # Scheduler instance.
  # config.scheduler = ::Rufus::Scheduler.new

  # Redis credentials.
  # See https://devcenter.heroku.com/articles/redistogo to configure redis for heroku.
  # config.redis_host     = '127.0.0.1'
  # config.redis_port     = '6379'
  # config.redis_password = nil
  # config.redis_timeout  = 3

  # Redis namespace when pushing new data.
  # config.redis_namespace = 'dashing_events'

  # Dashing come with default widgets using css and coffeescript.
  # You can create your own widgets by adding the following files:
  #
  # A widget is composed of:
  # - an HTML file used for layout and bindings                                     - app/views/dashing/widgets/foo.html
  # - a SCSS file for styles                                                        - app/assets/stylesheets/dashing/widgets/foo.scss
  # - a coffeescript file which allows you to handle incoming data & functionality  - app/assets/javascripts/dashing/widgets/foo.coffee
  #
  # CSS and JS file will be added to the asset path and the asset pipeline automatically.
  #
  # More information at http://shopify.github.io/dashing/
  #
  # You can change default views and assets paths with the following config:
  #
  # config.widgets_views_path = Rails.root.join('app', 'views', 'dashing', 'widgets')
  # config.widgets_js_path    = Rails.root.join('app', 'assets', 'javascripts', 'dashing')
  # config.widgets_css_path   = Rails.root.join('app', 'assets', 'stylesheets', 'dashing')

  # rufus-scheduler worker path
  # config.jobs_path = Rails.root.join('app', 'jobs')

  # Engine path to use for accessing engine's routes.
  # Ex: http://your_app/dashing/dashboard/my_dashboard_name
  # config.engine_path = '/dashing'

  # The dashboards views path used to find dashboards.
  # config.dashboards_views_path = Rails.root.join('app', 'views', 'dashing', 'dashboards')

  # The Dashing layout used to display metrics.
  # config.dashboard_layout_path = 'dashing/dashboard'

  # Default dashboard name to load when going to /dashing/dashboards
  # config.default_dashboard = nil

  # A secure random string to authenticate with for curl requests.
  # Put nil if you don't want to use authentication.
  # You can use SecureRandom.hex to generate a hex.
  # config.auth_token = nil

  # List of Devise models that should access the whole dashboard.
  # List the models. E.g: '[:user, :admin]'
  # config.devise_allowed_models = []
end