Commit d0146881 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #1693 from SaitoWu/features/mr

Improve development experience.
parents fced9678 757b4bbc
...@@ -118,6 +118,7 @@ group :development do ...@@ -118,6 +118,7 @@ group :development do
end end
group :development, :test do group :development, :test do
gem 'rails-dev-tweaks'
gem 'spinach-rails' gem 'spinach-rails'
gem "rspec-rails" gem "rspec-rails"
gem "capybara" gem "capybara"
......
...@@ -277,6 +277,9 @@ GEM ...@@ -277,6 +277,9 @@ GEM
activesupport (= 3.2.8) activesupport (= 3.2.8)
bundler (~> 1.0) bundler (~> 1.0)
railties (= 3.2.8) railties (= 3.2.8)
rails-dev-tweaks (0.6.1)
actionpack (~> 3.1)
railties (~> 3.1)
railties (3.2.8) railties (3.2.8)
actionpack (= 3.2.8) actionpack (= 3.2.8)
activesupport (= 3.2.8) activesupport (= 3.2.8)
...@@ -447,6 +450,7 @@ DEPENDENCIES ...@@ -447,6 +450,7 @@ DEPENDENCIES
pygments.rb (= 0.3.1) pygments.rb (= 0.3.1)
rack-mini-profiler rack-mini-profiler
rails (= 3.2.8) rails (= 3.2.8)
rails-dev-tweaks
raphael-rails (= 1.5.2) raphael-rails (= 1.5.2)
rb-fsevent rb-fsevent
rb-inotify rb-inotify
......
if Rails.env.development?
Rails.application.assets.logger = Logger.new('/dev/null')
Rails::Rack::Logger.class_eval do
def call_with_quiet_assets(env)
previous_level = Rails.logger.level
Rails.logger.level = Logger::ERROR if env['PATH_INFO'] =~ %r{^/assets/}
call_without_quiet_assets(env)
ensure
Rails.logger.level = previous_level
end
alias_method_chain :call, :quiet_assets
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment