lib/s3/right_s3.rb
# Apply current grantee @perms to +thing+. This method is called internally by the +grant+
# and +revoke+ methods. In normal use this method should not
# be called directly.
# 
#  grantee.perms = ['FULL_CONTROL']
#  grantee.apply #=> true
#
Apply current grantee @perms to +thing+. This method is called internally by the +grant+
and +revoke+ methods. In normal use this method should not
be called directly.


Apply current grantee @perms to + thing + . This method is called internally by the + grant + and + revoke + methods . In normal use this method should not be called directly .
def apply
        @perms.uniq!
        owner, grantees = self.class.owner_and_grantees(@thing)
        grantees.map! { |grantee| grantee.id == @id ? self : grantee }
        grantees << self unless grantees.include?(self)
        self.class.put_acl(@thing, owner, grantees)
      end
def apply @perms . uniq! owner , grantees = self . class . owner_and_grantees ( @thing ) grantees . map! { | grantee | grantee . id == @id ? self : grantee } grantees << self unless grantees . include? ( self ) self . class . put_acl ( @thing , owner , grantees ) end
Apply current grantee @perms to +thing+.
Apply current grantee @perms to + thing + .
# walk through all the grantees and replace the data for the current one and ... # ... if this grantee is not known - add this bad boy to a list # set permissions