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 = CollectionsHelper.match_uuid_with_optional_filepath(checked))
19 UserAgreement.sign uuid: r[1]
23 redirect_to(params[:return_to] || :back)