Sha256: c4acaee45faf3888690f98632ee69ce204e3975c687cecd607ca16d1292ec438
Contents?: true
Size: 500 Bytes
Versions: 1
Compression:
Stored size: 500 Bytes
Contents
require 'amee' require 'amee/rails' # Load config/amee.yml amee_config = "#{RAILS_ROOT}/config/amee.yml" if File.exist?(amee_config) # Load config $AMEE_CONFIG = YAML.load_file(amee_config)[RAILS_ENV] # Create a global AMEE connection that we can use from anywhere in this app AMEE::Rails.establish_connection($AMEE_CONFIG['server'], $AMEE_CONFIG['username'], $AMEE_CONFIG['password']) end # Add AMEE extensions into ActiveRecord::Base ActiveRecord::Base.class_eval { include AMEE::Rails }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
Floppy-amee-2.0.24 | rails/init.rb |