How should I write:
if @parent.child.grand_child.attribute.present? do_something
without cumbersome nil checkings to avoid exception:
Hi Think you can use a flag variable here with rescue option
flag = @parent.child.grand_child.attribute.present? rescue false if flag do_something end