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:
Marcel Molina 2008-06-19 19:34:52 -05:00
Родитель 1a052c63d0
Коммит cd679c6641
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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