From f03d6cdc958f3b981d51382d40ade591a8d0d9c7 Mon Sep 17 00:00:00 2001 From: Will Leonard Date: Fri, 15 Sep 2023 07:18:56 -0400 Subject: [PATCH] Supress deprecation warning --- lib/active_scaffold/helpers/association_helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/active_scaffold/helpers/association_helpers.rb b/lib/active_scaffold/helpers/association_helpers.rb index d2e6c5d0e5..ba90911f06 100644 --- a/lib/active_scaffold/helpers/association_helpers.rb +++ b/lib/active_scaffold/helpers/association_helpers.rb @@ -32,7 +32,7 @@ def association_options_count(association, conditions = nil) # returns options for the given association as a collection of [id, label] pairs intended for the +options_for_select+ helper. def options_for_association(association, include_all = false) - ActiveSupport::Deprecation.warn "options_for_association should not be used, use association_options_find directly" + # ActiveSupport::Deprecation.warn "options_for_association should not be used, use association_options_find directly" available_records = association_options_find(association, include_all ? nil : options_for_association_conditions(association)) available_records ||= [] available_records.sort{|a,b| a.to_label <=> b.to_label}.collect { |model| [ model.to_label, model.id ] }