We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0e8720 commit 9503abbCopy full SHA for 9503abb
1 file changed
lib/declarative_authorization/authorization.rb
@@ -626,9 +626,10 @@ def to_long_s (hash = nil)
626
def object_attribute_value (object, attr)
627
begin
628
if object.respond_to?(:proxy_association)
629
- first = object.first
630
- object.delete(first)
631
- first.send(attr)
+# first = object.first
+# object.delete(first)
+# first.send(attr)
632
+ object.first.send(attr)
633
else
634
object.send(attr)
635
end
0 commit comments