lib/active_regulation/containment.rb in active_regulation-2.4.0 vs lib/active_regulation/containment.rb in active_regulation-3.0.0

- old
+ new

@@ -1,11 +1,11 @@ module ActiveRegulation module Containment extend ActiveSupport::Concern included do - scope :contained, -> { where.not(contained_at: nil) } + scope :contained, -> { where.not(contained_at: nil) } scope :uncontained, -> { where(contained_at: nil) } end def contain! update(contained_at: Time.now) if uncontained? @@ -30,6 +30,6 @@ def to_containment I18n.t("active_regulation.containment.#{uncontained? ? :uncontained : :contained}") end end -end \ No newline at end of file +end