# Use this hook to configure MyDashboard bahaviors. MyDashboard.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 = 'my_dashboard_events' # MyDashboard 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/my_dashboard/widgets/foo.html # - a SCSS file for styles - app/assets/stylesheets/my_dashboard/widgets/foo.scss # - a coffeescript file which allows you to handle incoming data & functionality - app/assets/javascripts/my_dashboard/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 = 'app/views/my_dashboard/widgets/' # config.widgets_js_path = 'app/assets/javascripts/my_dashboard' # config.widgets_css_path = 'app/assets/stylesheets/my_dashboard' # 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/my_dashboard/dashboard/my_dashboard_name # config.engine_path = '/my_dashboard' # The dashboards views path used to find dashboards. # config.dashboards_views_path = 'app/views/my_dashboard/dashboards/' # The MyDashboard layout used to display metrics. # config.dashboard_layout_path = 'my_dashboard/dashboard' # Default dashboard name to load when going to /my_dashoboard/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