use less-rails, and make exception_notifier work again

This commit is contained in:
wvengen 2013-07-13 23:06:30 +02:00
parent cfae279196
commit fc6fbdaa95
3 changed files with 15 additions and 17 deletions

16
Gemfile
View file

@ -4,22 +4,20 @@ ruby "1.9.3"
gem "rails", '~> 3.2.9' gem "rails", '~> 3.2.9'
gem 'jquery-rails'
gem 'bootstrap-datepicker-rails'
# Gems used only for assets and not required # Gems used only for assets and not required
# in production environments by default. # in production environments by default.
group :assets do group :assets do
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
gem 'therubyracer', platforms: :ruby
gem 'sass-rails', '~> 3.2.3' gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1' gem 'coffee-rails', '~> 3.2.1'
gem 'less-rails-bootstrap' gem 'less-rails'
gem 'uglifier', '>= 1.0.3' gem 'uglifier', '>= 1.0.3'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
gem 'therubyracer', platforms: :ruby
end end
gem 'jquery-rails'
gem 'bootstrap-datepicker-rails'
gem 'mysql2' gem 'mysql2'
gem 'prawn' gem 'prawn'
gem 'haml-rails' gem 'haml-rails'
@ -42,7 +40,7 @@ gem 'resque'
gem 'whenever', require: false # For defining cronjobs, see config/schedule.rb gem 'whenever', require: false # For defining cronjobs, see config/schedule.rb
group :production do group :production do
gem 'exception_notification', require: 'exception_notifier' gem 'exception_notification'
end end
group :development do group :development do

View file

@ -123,8 +123,6 @@ GEM
less-rails (2.3.3) less-rails (2.3.3)
actionpack (>= 3.1) actionpack (>= 3.1)
less (~> 2.3.1) less (~> 2.3.1)
less-rails-bootstrap (2.3.3)
less-rails (~> 2.3.1)
libv8 (3.11.8.17) libv8 (3.11.8.17)
mail (2.5.4) mail (2.5.4)
mime-types (~> 1.16) mime-types (~> 1.16)
@ -290,7 +288,7 @@ DEPENDENCIES
inherited_resources inherited_resources
jquery-rails jquery-rails
kaminari kaminari
less-rails-bootstrap less-rails
localize_input! localize_input!
mailcatcher mailcatcher
meta_search meta_search

View file

@ -14,13 +14,15 @@ url_options.merge!({:port => FoodsoftConfig[:port]}) if FoodsoftConfig[:port]
Foodsoft::Application.configure do Foodsoft::Application.configure do
config.action_mailer.default_url_options = url_options config.action_mailer.default_url_options = url_options
if Rails.env !~ /development|test/ if %w(production).include? Rails.env
# Configuration of the exception_notification plugin # Configuration of the exception_notification plugin
# Mailadresses are set in config/app_config.yml # Mailadresses are set in config/app_config.yml
config.middleware.use ExceptionNotifier, config.middleware.use ExceptionNotification::Rack,
:email_prefix => FoodsoftConfig[:notification]['email_prefix'], :email => {
:sender_address => FoodsoftConfig[:notification]['sender_address'], :email_prefix => FoodsoftConfig[:notification]['email_prefix'],
:exception_recipients => FoodsoftConfig[:notification]['error_recipients'] :sender_address => FoodsoftConfig[:notification]['sender_address'],
:exception_recipients => FoodsoftConfig[:notification]['error_recipients']
}
end end
end end