Finn Glöe

Results 2 issues of Finn Glöe

## Overview Recent changes introduced in v7.4.0 led to a regression in combination with paper_trail. Specifically, this change: https://github.com/ClosureTree/closure_tree/commit/f3b33f81157ccf002b8c2774b30dc35bd4722610 ``` - hierarchy_class = parent_class.const_set(short_hierarchy_class_name, Class.new(ActiveRecord::Base)) + hierarchy_class = parent_class.const_set(short_hierarchy_class_name, Class.new(model_class.superclass))...

When normalizing attributes using the new [`ActiveRecord::normalizes`](https://edgeapi.rubyonrails.org/classes/ActiveRecord/Normalization/ClassMethods.html#method-i-normalizes) method, `%` could be tampered with. ```ruby class User < ActiveRecord::Base normalizes :name, with: ->(name) { name.gsub(/[^a-z0-9]/, '_') } end User.ransack({ name_cont: 'foo'...