Skip to content

Commit 9503abb

Browse files
committed
Eliminate regression in Authorization.object_attribute_value -- should not delete members from collections.
1 parent d0e8720 commit 9503abb

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

lib/declarative_authorization/authorization.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -626,9 +626,10 @@ def to_long_s (hash = nil)
626626
def object_attribute_value (object, attr)
627627
begin
628628
if object.respond_to?(:proxy_association)
629-
first = object.first
630-
object.delete(first)
631-
first.send(attr)
629+
# first = object.first
630+
# object.delete(first)
631+
# first.send(attr)
632+
object.first.send(attr)
632633
else
633634
object.send(attr)
634635
end

0 commit comments

Comments
 (0)