Sha256: 702c0447ec549b02aeec79941201d9c737e1c20760e9b0ec1f618eca11513f9a
Contents?: true
Size: 310 Bytes
Versions: 13
Compression:
Stored size: 310 Bytes
Contents
class ConditionalDependent < ActiveRecord::Base belongs_to :conditional_main counter_culture :conditional_main, column_name: Proc.new {|m| m.condition? ? 'conditional_dependents_count' : nil }, column_names: { ['conditional_dependents.condition = ?', true] => 'conditional_dependents_count' } end
Version data entries
13 entries across 13 versions & 1 rubygems