Skip to content

Instantly share code, notes, and snippets.

@lardawge
Created June 2, 2010 17:33
Show Gist options
  • Save lardawge/422704 to your computer and use it in GitHub Desktop.
Save lardawge/422704 to your computer and use it in GitHub Desktop.
Rfm::Base.setup do |config| # in initializer folder
config.host 'my.host.name', 20000
config.auth 'account', 'password'
config.pem 'path/to/pem_file.pem'
config.database 'company_database'
end
Rfm::Base.host = 'my.diff_host.name' # can be overridden individually
class FmUser < Rfm::Base
default_layout 'users'
end
# below has not been implemented yet, old api for finds still work.
u = FmUser.where(:name => 'Jim Jam').max(10).order('first_name' => 'desc').find # Can you say rails3? Love it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment