lib/maestrano/api/operation/create.rb in maestrano-0.11.0 vs lib/maestrano/api/operation/create.rb in maestrano-0.12.0
- old
+ new
@@ -2,10 +2,10 @@
module API
module Operation
module Create
module ClassMethods
def create(params={}, api_token=nil)
- response, api_token = Maestrano::API::Operation::Base.request(:post, self.url, api_token, params)
+ response, api_token = Maestrano::API::Operation::Base[self.preset].request(:post, self.url, api_token, params)
Util.convert_to_maestrano_object(response, api_token)
end
end
def self.included(base)