Sha256: 890265a3c7e933944702e81d534b9c66d953b3b959960893981373cbd9949a7a

Contents?: true

Size: 1.24 KB

Versions: 14

Compression:

Stored size: 1.24 KB

Contents

require 'ratchetio/rails'
Ratchetio.configure do |config|
  config.access_token = <%= access_token_expr %>

  # By default, Ratchetio will try to call the `current_user` controller method
  # to fetch the logged-in user object, and then call that object's `id`,
  # `username`, and `email` methods to fetch those properties. To customize:
  # config.person_method = "my_current_user"
  # config.person_id_method = "my_id"
  # config.person_username_method = "my_username"
  # config.person_email_method = "my_email"

  # Add exception class names to the exception_level_filters hash to
  # change the level that exception is reported at. Note that if an exception
  # has already been reported and logged the level will need to be changed
  # via the ratchet.io interface.
  # Valid levels: 'critical', 'error', 'warning', 'info', 'debug', 'ignore'
  # 'ignore' will cause the exception to not be reported at all.
  # config.exception_level_filters.merge!('MyCriticalException' => 'critical')
  
  # Enable asynchronous reporting (uses girl_friday or Threading if girl_friday
  # is not installed)
  # config.use_async = true
  # Supply your own async handler:
  # config.async_handler = Proc.new { |payload|
  #  Thread.new { Ratchetio.process_payload(payload) }
  # }
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
ratchetio-0.7.1 lib/generators/ratchetio/templates/initializer.rb
ratchetio-0.7.0 lib/generators/ratchetio/templates/initializer.rb
ratchetio-0.6.3 lib/generators/ratchetio/templates/initializer.rb
ratchetio-0.6.1 lib/generators/ratchetio/templates/initializer.rb
ratchetio-0.6.0 lib/generators/ratchetio/templates/initializer.rb
ratchetio-0.5.5 lib/generators/ratchetio/templates/initializer.rb
ratchetio-0.5.3 lib/generators/ratchetio/templates/initializer.rb
ratchetio-0.5.2 lib/generators/ratchetio/templates/initializer.rb
ratchetio-0.5.1 lib/generators/ratchetio/templates/initializer.rb
ratchetio-0.5.0 lib/generators/ratchetio/templates/initializer.rb
ratchetio-0.4.11 lib/generators/ratchetio/templates/initializer.rb
ratchetio-0.4.10 lib/generators/ratchetio/templates/initializer.rb
ratchetio-0.4.9 lib/generators/ratchetio/templates/initializer.rb
ratchetio-0.4.8 lib/generators/ratchetio/templates/initializer.rb