1 class UserAgreementsController < ApplicationController
2 skip_before_filter :check_user_agreements
3 skip_before_filter :find_object_by_uuid
4 skip_before_filter :check_user_profile
7 if unsigned_user_agreements.empty?
8 redirect_to(params[:return_to] || :back)
17 params[:checked].each do |checked|
18 if r = checked.match(/^([0-9a-f]+[^\/]*)/)
19 UserAgreement.sign uuid: r[1]
23 redirect_to(params[:return_to] || :back)