Sha256: fb3b0f068f85e42091c7a24b4b78acd4d6ec8ab8b1425a65293f824668b03c5e
Contents?: true
Size: 435 Bytes
Versions: 40
Compression:
Stored size: 435 Bytes
Contents
require 'bizside/record_has_warnings' module Bizside module Warning extend ActiveSupport::Concern included do attr_accessor :warnings_confirmed end def warnings @warnings ||= [] end def check_warnings raise Bizside::RecordHasWarnings.new if warnings.present? end def warnings_confirmed? self.warnings_confirmed == '1' or self.warnings_confirmed == true end end end
Version data entries
40 entries across 40 versions & 1 rubygems