lib/friendly_id/base.rb in friendly_id-5.2.4 vs lib/friendly_id/base.rb in friendly_id-5.2.5

- old
+ new

@@ -259,15 +259,10 @@ end # Either the friendly_id, or the numeric id cast to a string. def to_param if friendly_id_config.routes == :friendly - if attribute_changed?(friendly_id_config.query_field) - diff = changes[friendly_id_config.query_field] - diff.first || diff.second - else - friendly_id.presence.to_param || super - end + friendly_id.presence.to_param || super else super end end