class Cat ActiveCouch Base site YAML load File open File join Rails ro

1
2
3
4
class Cat < ActiveCouch::Base
site YAML::load(File.open(File.join(Rails.root,
'config', 'activecouch.yml')))[Rails.env]['site']
end