Sha256: 0dea88de498f869c91900bf9071ec6b2bd2c4e982cd4607a59ade4184e6980a6
Contents?: true
Size: 385 Bytes
Versions: 1
Compression:
Stored size: 385 Bytes
Contents
module Comee module Core class TransportAvailability < ApplicationRecord before_save :compute_weekday has_many :time_slots validates :availability_date, presence: true, uniqueness: true def compute_weekday self.weekday = availability_date.strftime("%A") self.weekday_short = availability_date.strftime("%a") end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
comee_core-0.1.88 | app/models/comee/core/transport_availability.rb |