Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Ruxton
Forked from dangalipo/gist:2817218
Created May 28, 2012 04:30
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 Ruxton/2817227 to your computer and use it in GitHub Desktop.
Save Ruxton/2817227 to your computer and use it in GitHub Desktop.
def edit
if current_user.vetter?
if @mission.vet.nil?
@mission.start_vetting
@mission.build_vet
end
end
end
it do
get :edit, id: mission.id
@mission = assigns[:mission]
@mission.vet.should_not be_nil
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment