mirror of
https://github.com/opf/openproject.git
synced 2026-06-13 19:20:00 +00:00
remove outdated guard
This commit is contained in:
@@ -37,8 +37,6 @@ module Types
|
||||
|
||||
def apply_patterns(model, save: true)
|
||||
model.type&.enabled_patterns&.each do |key, pattern|
|
||||
next if model.changed_attribute_keys.include?(key)
|
||||
|
||||
model.public_send(:"#{key}=", pattern.resolve(model))
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user