Main change was to rename may_approve to may_judge.
AASM now adds may_... checks to all transitions.
Since our transition was also called approve
may_approve was getting overwritten
leading to infinite recursion.
Sprockets 4 expects a manifest file which we do not have yet.
Also adjust new item form to work.
Somehow haml seems to add a `_new` postfix now
which dom_id does not - causing a missmatch.
and fixed wiki versioning test
Rails 5.1 last steps
crabgrass_media from rubygems
remove controller test for task sorting - not possible to test xhr request without route in new parameter syntax
remove new framework defaults initializer file
Final step of upgrade to rails 5.1
we only test on stretch, because we need ruby >= 2.2.2
update dependencies by running bundle update
and fix gallery_image_controller_test
Also write db/schema.rb with rails 5
update some gems, replace before_filter / after_filter by before_action / after_action
and some more config changes (mostly commented out) and scripts generated by rails app:update task
first make everything work locally with rails 5.0
test do not pass on CI yet because the test task has to be rewritten
- update dependecies
- run rails app:update task: update config, generate intitializers etc.
- the method hide_action is not available in rails anymore
- ActionController::Parameters have to be converted to a hash
- protect_from_forgery now defaults to prepend:false
it was only used in dead code which was formerly used for wiki diffs
Wiki::DiffsController, routes, view, translation key and controller tests are removed as well.
Resolve "Error handling for encrypted emails - prepare for more Information in encrypted Email Notifications"
Closes#125
See merge request riseuplabs/crabgrass!120