Module: Extensions::CoreExtensions::ActiveRecord::Relation

Defined in:
lib/extensions/core_extensions/active_record/relation.rb

Instance Method Summary collapse

Instance Method Details

#select_for_countObject

Fix for count queries involving calculated attributes To remove if Rails ever fixes this, see rails/rails#15138 and rails/rails#24809 https://github.com/aha-app/calculated_attributes#known-issues


6
7
8
# File 'lib/extensions/core_extensions/active_record/relation.rb', line 6

def select_for_count
  :all
end