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

Version Path
bizside-2.3.9 lib/bizside/warning.rb
bizside-3.0.3 lib/bizside/warning.rb
bizside-2.3.8 lib/bizside/warning.rb
bizside-3.0.2 lib/bizside/warning.rb
bizside-3.0.1 lib/bizside/warning.rb
bizside-3.0.0 lib/bizside/warning.rb
bizside-2.3.7 lib/bizside/warning.rb
bizside-2.3.6 lib/bizside/warning.rb
bizside-2.3.5 lib/bizside/warning.rb
bizside-2.3.4 lib/bizside/warning.rb
bizside-2.3.3 lib/bizside/warning.rb
bizside-2.3.2 lib/bizside/warning.rb
bizside-2.3.1 lib/bizside/warning.rb
bizside-2.3.0 lib/bizside/warning.rb
bizside-2.2.3 lib/bizside/warning.rb
bizside-2.2.2 lib/bizside/warning.rb
bizside-2.2.1 lib/bizside/warning.rb
bizside-2.2.0 lib/bizside/warning.rb
bizside-2.1.12 lib/bizside/warning.rb
bizside-2.1.11 lib/bizside/warning.rb