From cc68036e3e3850b937bd3b6c1d5b03208ee6820b Mon Sep 17 00:00:00 2001 From: Phuong Nguyen Date: Mon, 16 Jul 2012 11:57:38 +0700 Subject: [PATCH] Allow call acl.push with hash format for acl with key --- lib/google_drive/acl.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/google_drive/acl.rb b/lib/google_drive/acl.rb index 2fa06f5..b9b09b9 100644 --- a/lib/google_drive/acl.rb +++ b/lib/google_drive/acl.rb @@ -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(