class Ransack::Adapters::ActiveRecord::Context
def remove_association(association)
def remove_association(association) return if @lock_associations.include?(association) @join_dependency.instance_variable_get(:@join_root).children.delete_if { |stashed| stashed.eql?(association) } @object.joins_values.delete_if { |jd| jd.instance_variables.include?(:@join_root) && jd.instance_variable_get(:@join_root).children.map(&:object_id) == [association.object_id] } end