Skip to content

Commit

Permalink
override send so sending a campaign works. kind of a hack.
Browse files Browse the repository at this point in the history
  • Loading branch information
amro committed Sep 21, 2013
1 parent d63cae9 commit 5acf63a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/gibbon/api_category.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ def method_missing(method, *args)
method = method.to_s.gsub("_", "-").downcase
call("#{@category_name}/#{method}", *args)
end

def send(*args)
if ((args.length > 0) && args[0].is_a?(Hash))
method_missing(:send, args[0])
else
__send__(args)
end
end

def set_instance_defaults
@timeout = (API.timeout || 30) if @timeout.nil?
Expand Down

0 comments on commit 5acf63a

Please sign in to comment.