Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rails 0.46 KB | None | 0 0
  1.   def disclaimer
  2.     redirect to :action=> details if current_person.family.people.where(:is_invited_ceremony => true).count == 0 or current_person.family.accepted_disclaimer
  3.     if request.post?
  4.       if params[:disclaimer][:agree] == "1"
  5.         current_person.family[:accepted_disclaimer] = true
  6.         redirect_to :action => :details
  7.       else
  8.         flash[:notice] = "You must read and agree to this information before continuing."
  9.       end
  10.     end
  11.   end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement