Sha256: e1d255ecab5f079a575f1030adf4af077e75fd0f8bc3d9a66ebec20a53606c8d
Contents?: true
Size: 1.89 KB
Versions: 2
Compression:
Stored size: 1.89 KB
Contents
require File.expand_path( File.join(File.dirname(__FILE__), '..', '..', '..', 'support', "defined_middleware") ) Dummy310rc4::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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
active_reload-0.3.0 | test/dummy310rc4/config/environments/development.rb |
active_reload-0.2.0 | test/dummy310rc4/config/environments/development.rb |