search is now saved asynchron and without a form which caused some redirection through searches_controller

added asynchronous save of search, removed searches_controller,
This commit is contained in:
Thomas Hille
2017-03-21 14:37:32 +01:00
parent 4a9867b81b
commit b05bb27ed9
7 changed files with 28 additions and 45 deletions

View File

@ -16,7 +16,7 @@ class ExercisePolicy < AdminOrAuthorPolicy
define_method(action) { admin? || author?}
end
[:implement?, :working_times?, :intervention?, :submit?, :reload?].each do |action|
[:implement?, :working_times?, :intervention?, :search?, :submit?, :reload?].each do |action|
define_method(action) { everyone }
end