Skip to content

Commit

Permalink
Allow call acl.push with hash format for acl with key
Browse files Browse the repository at this point in the history
  • Loading branch information
phuongnd08 committed Jul 16, 2012
1 parent d467c1a commit cc68036
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/google_drive/acl.rb
Expand Up @@ -42,7 +42,7 @@ def initialize(session, acls_feed_url) #:nodoc:
# {:scope_type => "user", :scope => "example3@gmail.com", :role => "writer"})
def push(entry)

entry = AclEntry.new(entry) if entry.is_a?(Hash)
entry = AclEntry.load(entry) if entry.is_a?(Hash)

header = {"GData-Version" => "3.0", "Content-Type" => "application/atom+xml"}
doc = @session.request(
Expand Down

0 comments on commit cc68036

Please sign in to comment.