foodsoft/app/models/shared_article.rb
Benjamin Meichsner 9f8d0d28ac Removed gettext and simplified_localization-plugin. L18n is now the appropriate module.
Upgraded to rails 2.2.2 and replaced complex foodsoft.rb-loader with simple
initializers/load_app_config.rb. Multiple foodcoops option is temporarly deactivated.
2009-01-06 15:45:19 +01:00

9 lines
297 B
Ruby

class SharedArticle < ActiveRecord::Base
# connect to database from sharedLists-Application
SharedArticle.establish_connection(APP_CONFIG[:shared_lists])
# set correct table_name in external DB
set_table_name :articles
belongs_to :shared_supplier, :foreign_key => :supplier_id
end