From aad966c8dfd7ccdcf93c5698a8155b00a91c653f Mon Sep 17 00:00:00 2001 From: root Date: Thu, 24 Feb 2011 11:31:25 +0000 Subject: predictions always enabled --- application.rb | 2 ++ views/predict.haml | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/application.rb b/application.rb index a892c03..88763d9 100644 --- a/application.rb +++ b/application.rb @@ -14,6 +14,8 @@ use Rack::Session::Cookie, :expire_after => 28800, :secret => "ui6vaiNi-change_me" use Rack::Flash +set :lock, true + helpers do def error(message) diff --git a/views/predict.haml b/views/predict.haml index b6e1088..347592c 100644 --- a/views/predict.haml +++ b/views/predict.haml @@ -26,7 +26,8 @@ - @models.each do |model| %label{:for => model.id} = model.name - %input{:type => 'checkbox', :name => "selection[#{model.id}]", :value => true, :id => model.id, :disabled => !is_authorized(model.uri, "GET")} + -#%input{:type => 'checkbox', :name => "selection[#{model.id}]", :value => true, :id => model.id, :disabled => !is_authorized(model.uri, "GET")} + %input{:type => 'checkbox', :name => "selection[#{model.id}]", :value => true, :id => model.id, :disabled => false} %br %input{:type => 'hidden', :name => 'subjectid', :id => 'subjectid', :value => session[:subjectid]} -- cgit v1.2.3