class ActiveRecord::Base
def encode_with_with_database(coder)
Rails > 3.0 now uses encode_with to determine what to encode with yaml
def encode_with_with_database(coder) coder['database'] = @database if @database.present? encode_with_without_database(coder) end