lib/templates/config/initializers/environment.rb in aetherg-0.1.2 vs lib/templates/config/initializers/environment.rb in aetherg-0.1.3
- old
+ new
@@ -8,10 +8,10 @@
configure do
enable :logging
enable :static_cache_control
file = File.new("#{root}/log/#{environment.to_s}.log", 'a+')
- ActiveRecord::Base.logger = Logger.new(file) unless (@no_database || @database == 'mongodb' || @database == 'mongo')
+ <%= ActiveRecord::Base.logger = Logger.new(file) unless (@no_database || @database == 'mongodb' || @database == 'mongo') %>
file.sync = true
use Rack::CommonLogger, file
# set CSRF
# use Rack::Session::Cookie, secret: $app_settings["csrf_token"]