Skip to content

Instantly share code, notes, and snippets.

@cedricdekimpe
Created October 15, 2012 15:18
Show Gist options
  • Save cedricdekimpe/3893050 to your computer and use it in GitHub Desktop.
Save cedricdekimpe/3893050 to your computer and use it in GitHub Desktop.
# Load the rails application
require File.expand_path('../application', __FILE__)
require File.expand_path('../app_config.rb', __FILE__)
#config.active_record.default_timezone = "UTC"
#config.time_zone = "UTC"
ActionView::Base.field_error_proc = proc { |input, instance| input }
# source: http://codesnipr.com/snippet/1105/Rails-3-Removing-field-with-errors-division
#MyApp::Application.config.logger = Logger.new(MyApp::Application.config.paths.log.first, 50, 1048576)
MyApp::Application.config.active_record.observers = :activity_log_observer
# Initialize the rails application
MyApp::Application.initialize!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment