Skip to content

Commit

Permalink
fix undefined method for Readonly exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Ching committed Aug 26, 2011
1 parent a9a01ca commit 46bfca2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/exact_target/error.rb
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/exact_target/request_builder.rb
Expand Up @@ -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
Expand Down

0 comments on commit 46bfca2

Please sign in to comment.