Sha256: 11cefca4023ec7d358cba58338585b595a457f89cd84b5fd325e057b011e7c0e

Contents?: true

Size: 210 Bytes

Versions: 4

Compression:

Stored size: 210 Bytes

Contents

module Spree
  class Bank < ActiveRecord::Base
    validates :name, :account_no , :presence => true
    validates_uniqueness_of :account_no , :scope => :name

    scope :active, where(:active => true)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spree-bank-transfer-2.2.2 app/models/spree/bank.rb
spree-bank-transfer-2.2.1 app/models/spree/bank.rb
spree-bank-transfer-2.2.0 app/models/spree/bank.rb
spree-bank-transfer-2.1.0 app/models/spree/bank.rb