Skip to content

Instantly share code, notes, and snippets.

@MettaAudio
Created December 21, 2010 21:39
Show Gist options
  • Save MettaAudio/750656 to your computer and use it in GitHub Desktop.
Save MettaAudio/750656 to your computer and use it in GitHub Desktop.
Problem child
Order.class_eval do
def has_site_approvals?
line_items.each do |item|
return true if !item.approval.nil? # & !item.approval.approval_date.nil?
end
end
false
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment