2
다른 개체의 nested_attributes 인 일부 개체가 있습니다. 삭제 된 것으로 표시되면 레일스는 "marked_for_destruction"속성을 만듭니다. 이 var는 어떻게 읽습니까?Rails 객체가 marked_for_destruction으로 표시되었는지 확인하는 방법은 무엇입니까?
샘플 YAML 덤프 :
--- &id001 !ruby/object:LineItem
attributes:
name:Pay
created_at: 2009-10-12 16:30:51
updated_at: 2009-10-12 16:30:51
statement_id: "8"
amount: "234"
id: "33"
attributes_cache: {}
errors: !ruby/object:ActiveRecord::Errors
base: *id001
errors: {}
marked_for_destruction: true