有没有办法禁用default_scope单个belongs_to关联?该default_scope是好的,但所有的单一belongs_to,我想绕过范围.我很熟悉,with_exclusive_scope但我认为不能与belongs_to一起使用.
default_scope
belongs_to
with_exclusive_scope
有什么建议?
上下文:我试图允许acts_as_revisable中的branch_source关联指向不是最新的修订(是错误的).revisable_is_current
branch_source
revisable_is_current
ruby-on-rails
ruby-on-rails ×1