lib/sugarcrm/module_methods.rb in sugarcrm-0.7.9 vs lib/sugarcrm/module_methods.rb in sugarcrm-0.8.0
- old
+ new
@@ -5,9 +5,15 @@
@@connection
end
def self.connection=(connection)
@@connection = connection
end
+ def self.connect(url, user, pass, options={})
+ SugarCRM::Base.establish_connection(url, user, pass, options)
+ end
+ class << self
+ alias :connect! :connect
+ end
@@modules = []
def self.modules
@@modules
end
\ No newline at end of file