class Dashing::Configuration
Attributes
auth_token[RW]
dashboard_layout_path[RW]
dashboards_views_path[RW]
default_dashboard[RW]
devise_allowed_models[RW]
engine_path[RW]
jobs_path[RW]
redis[R]
redis_host[RW]
redis_namespace[RW]
redis_password[RW]
redis_port[RW]
redis_timeout[RW]
scheduler[RW]
widgets_css_path[RW]
widgets_js_path[RW]
widgets_views_path[RW]
Public Class Methods
new()
click to toggle source
# File lib/dashing/configuration.rb, line 16 def initialize @engine_path = '/dashing' @scheduler = ::Rufus::Scheduler.new # Redis @redis_host = '127.0.0.1' @redis_port = '6379' @redis_password = nil @redis_namespace = 'dashing_events' @redis_timeout = 3 # Authorization @auth_token = nil @devise_allowed_models = [] # Jobs @jobs_path = Rails.root.join('app', 'jobs') # Dashboards @default_dashboard = nil @dashboards_views_path = Rails.root.join('app', 'views', 'dashing', 'dashboards') @dashboard_layout_path = 'dashing/dashboard' # Widgets @widgets_views_path = Rails.root.join('app', 'views', 'dashing', 'widgets') @widgets_js_path = Rails.root.join('app', 'assets', 'javascripts', 'dashing') @widgets_css_path = Rails.root.join('app', 'assets', 'stylesheets', 'dashing') end
Public Instance Methods
new_redis_connection()
click to toggle source
# File lib/dashing/configuration.rb, line 49 def new_redis_connection ::Redis.new(host: redis_host, port: redis_port, password: redis_password) end
Private Instance Methods
request_thread_count()
click to toggle source
# File lib/dashing/configuration.rb, line 55 def request_thread_count Integer(ENV['RAILS_MAX_THREADS'] || 5) end