Skip to content

Instantly share code, notes, and snippets.

@px-amaac
Created October 28, 2013 08:37
Show Gist options
  • Select an option

  • Save px-amaac/7193287 to your computer and use it in GitHub Desktop.

Select an option

Save px-amaac/7193287 to your computer and use it in GitHub Desktop.
def correct_user
@digital_object_identifier = current_user.digital_object_identifiers.find(params[:id])
redirect_to root_url if @digital_object_identifier.nil?
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment