Sha256: 02d4d1f49ddd70ecca8bb647aa31bfc398c09bbe6d46ccd6a9d9b52439cf2569
Contents?: true
Size: 430 Bytes
Versions: 4
Compression:
Stored size: 430 Bytes
Contents
module Comee module Core class Payment < ApplicationRecord belongs_to :invoice belongs_to :payment_deposit validates :amount, presence: true, numericality: {greater_than: 0} def self.ransackable_attributes(_auth_object = nil) %w[id created_at updated_at] end def self.ransackable_associations(_auth_object = nil) %w[payment_deposit invoice] end end end end
Version data entries
4 entries across 4 versions & 1 rubygems