Skip to content

Instantly share code, notes, and snippets.

@gamov
Created November 24, 2010 09:05
Show Gist options
  • Save gamov/713362 to your computer and use it in GitHub Desktop.
Save gamov/713362 to your computer and use it in GitHub Desktop.
def verify_no_associated_charges
unless charges.empty?
errors.add_to_base("You cannot delete the charge code #{code} because it has associated charges")
false
else
true
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment