lib/templates/config/initializers/environment.rb in aetherg-0.1.7 vs lib/templates/config/initializers/environment.rb in aetherg-0.1.8

- old
+ new

@@ -8,10 +8,14 @@ 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') %> + + <%- unless @no_database || @database == 'mongodb' || @database == 'mongo' -%> + ActiveRecord::Base.logger = Logger.new(file) + <%- end -%> + file.sync = true use Rack::CommonLogger, file # set CSRF # use Rack::Session::Cookie, secret: $app_settings["csrf_token"]