Sha256: ece1b07eefa6b7a9fee43879aec3dc77284f34a1b8d02fad8befc08c7291abdb
Contents?: true
Size: 239 Bytes
Versions: 2
Compression:
Stored size: 239 Bytes
Contents
module Counter::Verifyable extend ActiveSupport::Concern def correct? count_by_sql == value end def correct! requires_recalculation = !correct? recalc! if requires_recalculation !requires_recalculation end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
counterwise-0.1.1 | app/models/concerns/counter/verifyable.rb |
counterwise-0.1.0 | app/models/concerns/counter/verifyable.rb |