Skip to content

Commit

Permalink
Only undef the id method on ACL and Owner if it is currently defined …
Browse files Browse the repository at this point in the history
…to play better with third party libraries
  • Loading branch information
marcel committed Jun 20, 2008
1 parent 1a052c6 commit cd679c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/aws/s3/acl.rb
Expand Up @@ -385,7 +385,7 @@ def build
class Grantee
include SelectiveAttributeProxy #:nodoc:

undef_method :id # Get rid of Object#id
undef_method :id if method_defined?(:id) # Get rid of Object#id

def initialize(attributes = {})
# Set default values for attributes that may not be passed in but we still want the object
Expand Down
2 changes: 1 addition & 1 deletion lib/aws/s3/owner.rb
Expand Up @@ -7,7 +7,7 @@ module S3
#
# You can retrieve the owner of the current account by calling Owner.current.
class Owner
undef_method :id # Get rid of Object#id
undef_method :id if method_defined?(:id) # Get rid of Object#id
include SelectiveAttributeProxy

class << self
Expand Down

0 comments on commit cd679c6

Please sign in to comment.