зеркало из https://github.com/github/aws-s3.git
Only undef the id method on ACL and Owner if it is currently defined to play better with third party libraries
This commit is contained in:
Родитель
1a052c63d0
Коммит
cd679c6641
|
@ -385,7 +385,7 @@ module AWS
|
|||
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
|
||||
|
|
|
@ -7,7 +7,7 @@ module AWS
|
|||
#
|
||||
# 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
|
||||
|
|
Загрузка…
Ссылка в новой задаче