Sha256: 7f2f1094b42e4abaf0157ae2748e8229e938f2e0ba85212ef646b61128b16a2b
Contents?: true
Size: 380 Bytes
Versions: 3
Compression:
Stored size: 380 Bytes
Contents
module Comable class ShipmentMethod < ActiveRecord::Base validates :name, presence: true, length: { maximum: 255 } validates :fee, presence: true, numericality: { greater_than_or_equal_to: 0 } validates :traking_url, length: { maximum: 255 } scope :activated, -> { where(activated_flag: true) } scope :by_newest, -> { reorder(created_at: :desc) } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
comable-core-0.7.1 | app/models/comable/shipment_method.rb |
comable-core-0.7.0 | app/models/comable/shipment_method.rb |
comable-core-0.7.0.beta2 | app/models/comable/shipment_method.rb |