Class: TermsOfServiceAgreementsController
Constant Summary
collapse
- I_AGREE_TEXT =
"I Agree"
- I_DO_NOT_AGREE_TEXT =
"I Do Not Agree"
Instance Method Summary
collapse
#sufia, with_themed_layout
Instance Method Details
#create ⇒ Object
11
12
13
14
15
16
17
18
19
|
# File 'app/controllers/terms_of_service_agreements_controller.rb', line 11
def create
if user_just_agreed_to_tos?
current_user.agree_to_terms_of_service!
redirect_to new_classify_concern_path
else
flash.now[:notice] = "To proceed, you must agree to the Terms of Service."
render 'new'
end
end
|
#i_agree_text ⇒ Object
27
28
29
|
# File 'app/controllers/terms_of_service_agreements_controller.rb', line 27
def i_agree_text
I_AGREE_TEXT
end
|
#i_do_not_agree_text ⇒ Object
32
33
34
|
# File 'app/controllers/terms_of_service_agreements_controller.rb', line 32
def i_do_not_agree_text
I_DO_NOT_AGREE_TEXT
end
|
#new ⇒ Object
8
9
|
# File 'app/controllers/terms_of_service_agreements_controller.rb', line 8
def new
end
|