Skip to content

Instantly share code, notes, and snippets.

@timruffles
Created November 24, 2010 10:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timruffles/713482 to your computer and use it in GitHub Desktop.
Save timruffles/713482 to your computer and use it in GitHub Desktop.
def user_allowed_to_deposit?
validate_rights :deposit do |reason, default|
if reason == :acl_failed
flash[:notice] = "We need to verify your identity before you can deposit."
redirect_to(new_account_idcheck_path)
else
default.call
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment