Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/active_scaffold/helpers/association_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 ] }
Expand Down