Configure rating scale as class instance variable of MajorityJudgment
This commit is contained in:
parent
9c2adb1072
commit
9810cdb615
4 changed files with 25 additions and 13 deletions
8
vote.rb
8
vote.rb
|
|
@ -51,6 +51,14 @@ def verify_password(password, hash)
|
|||
end
|
||||
|
||||
enable :sessions
|
||||
set :values, [ { :id => 1, :label => "Awful" },
|
||||
{ :id => 2, :label => "Very bad" },
|
||||
{ :id => 3, :label => "Bad" },
|
||||
{ :id => 4, :label => "Mediocre" },
|
||||
{ :id => 5, :label => "Good" },
|
||||
{ :id => 6, :label => "Very good" },
|
||||
{ :id => 7, :label => "Excellent" } ]
|
||||
MajorityJudgment.values = settings.values
|
||||
|
||||
get '/' do
|
||||
redirect '/login' unless current_user
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue