adding more authentication, fixing category bug

This commit is contained in:
Jared Cosulich 2017-04-13 11:29:56 -04:00
parent 60a2982724
commit 42fd3edbae
10 changed files with 28 additions and 93 deletions

View file

@ -18,7 +18,7 @@ class Attempt < ApplicationRecord
def messages
[
#question.text,
"#{question.text}\n#{question.option1}: Reply 1\n\r#{question.option2}: Reply 2\n\r#{question.option3}: Reply 3\n\r#{question.option4}: Reply 4\n\r#{question.option5}: Reply 5\n\rReply 'stop' to stop these messages."
"#{question.text}\n\r#{question.option1}: Reply 1\n\r#{question.option2}: Reply 2\n\r#{question.option3}: Reply 3\n\r#{question.option4}: Reply 4\n\r#{question.option5}: Reply 5\n\rReply 'stop' to stop these messages."
]
end

View file

@ -30,7 +30,7 @@ class Category < ApplicationRecord
"resources",
"indicators-of-academic-learning",
"character-and-wellbeing-outcomes",
"family-questions"
"pilot-family-questions"
].index(root_identifier)
end

View file

@ -4,6 +4,7 @@ class Recipient < ApplicationRecord
belongs_to :school
validates_associated :school
has_many :recipient_schedules
has_many :attempts
validates :name, presence: true