Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix undefined method for Readonly exception

  • Loading branch information...
commit 46bfca2ada3d1e2e49a40247edd68139d8f2a768 1 parent a9a01ca
Jeff Ching authored
View
3  lib/exact_target/error.rb
@@ -33,9 +33,8 @@ def to_s
end
class ReadonlyError < Error
- def initialize(name, *args)
+ def initialize(name)
@name = name
- @args = args
end
def to_s
View
2  lib/exact_target/request_builder.rb
@@ -327,7 +327,7 @@ def build_system_option(s, name, value)
def ensure_executable!(method, email = nil)
# stop if the method is readonly
- raise ReadonlyError.new(method, args) if @config.readonly && @config.readonly.include?(method.to_sym)
+ raise ReadonlyError.new(method) if @config.readonly && @config.readonly.include?(method.to_sym)
ensure_sendable!(email) if email
end
Please sign in to comment.
Something went wrong with that request. Please try again.