Sha256: f727ef7526b3b189114a56f032fe643369dfc35cb29460752884a68b85e0710e

Contents?: true

Size: 1.89 KB

Versions: 1

Compression:

Stored size: 1.89 KB

Contents

require File.expand_path( File.join(File.dirname(__FILE__), '..', '..', '..', 'support', "defined_middleware") )

Dummy310rc6::Application.configure do
  # Settings specified here will take precedence over those in config/application.rb

  # In the development environment your application's code is reloaded on
  # every request.  This slows down response time but is perfect for development
  # since you don't have to restart the web server when you make code changes.
  config.cache_classes = false

  # Log error messages when you accidentally call methods on nil.
  config.whiny_nils = true

  # Show full error reports and disable caching
  config.consider_all_requests_local       = true
  config.action_controller.perform_caching = false

  # Don't care if the mailer can't send
  config.action_mailer.raise_delivery_errors = false

  # Print deprecation notices to the Rails logger
  config.active_support.deprecation = :log

  # Only use best-standards-support built into browsers
  config.action_dispatch.best_standards_support = :builtin

  # Do not compress assets
  config.assets.compress = false

  config.middleware.insert_after(ActionDispatch::Static, DefinedMiddleware)
end

# http://railscasts.com/episodes/249-notifications-in-rails-3
ActiveSupport::Notifications.subscribe("active_support.dependencies.clear") do |*args|
  msg = "Code reloaded!"
  #  Libnotify.show(:body => msg, :summary => Rails.application.class.name, :timeout => 2.5, :append => true) # https://github.com/splattael/libnotify
  Rails.logger.info(" --- #{msg} --- ")
end

ActiveSupport::Notifications.subscribe("active_reload.set_clear_dependencies_hook_replaced") do |*args|
  event = ActiveSupport::Notifications::Event.new(*args)
  msg = event.name
  #  Libnotify.show(:body => msg, :summary => Rails.application.class.name, :timeout => 2.5, :append => true) # https://github.com/splattael/libnotify
  Rails.logger.warn(" --- #{msg} --- ")
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_reload-0.6.0 test/dummy310rc6/config/environments/development.rb