GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: DataMapper Adapters
Homepage: http://www.yehudakatz.com
Clone URL: git://github.com/wycats/dm-adapters.git
Take out connect! from init
wycats (author)
Wed Jul 23 18:58:15 -0700 2008
commit  badafb2b0a0669d69f4e9e651301024c6c24cd7e
tree    d69f21c8ae9110c4854aa07e64a89bb31a2475db
parent  b72e6107430b8acaf178126b7b7cbaa9968335eb
...
79
80
81
82
83
84
85
...
105
106
107
108
 
109
110
111
112
 
113
114
115
...
79
80
81
 
82
83
84
...
104
105
106
 
107
108
109
110
 
111
112
113
114
0
@@ -79,7 +79,6 @@ module DataMapper
0
         super
0
         @resource_naming_convention = proc {|value| value.split("::").last}
0
         @field_naming_convention = proc {|value| Extlib::Inflection.camelize(value)}
0
- connect!
0
       end
0
       
0
       def connect!
0
@@ -105,11 +104,11 @@ module DataMapper
0
         end
0
         
0
         require "salesforce_api"
0
- @connection = SalesforceAPI::Connection.new(URI.unescape(@uri.user), @uri.password, "#{ENV["HOME"]}/.salesforce/#{basename}").driver
0
+ SalesforceAPI::Connection.new(URI.unescape(@uri.user), @uri.password, "#{ENV["HOME"]}/.salesforce/#{basename}").driver
0
       end
0
       
0
       def connection
0
- @connection || connect!
0
+ @connection ||= connect!
0
       end
0
 
0
       def read_many(query)

Comments

    No one has commented yet.