Sha256: 64e18ea37a9dd24b7d13bdeba6d050678829edbc728a0f1d80e24e8e4191b858

Contents?: true

Size: 296 Bytes

Versions: 1

Compression:

Stored size: 296 Bytes

Contents

module G5Updatable
  class SpecialDate < ActiveRecord::Base
    belongs_to :location, foreign_key: :g5_updatable_location_id
    belongs_to :hour_set

    def open_time
      open.strftime "%I:%M %p" if open
    end

    def close_time
      close.strftime "%I:%M %p" if close
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
g5_updatable-1.0.2.pre.1 app/models/g5_updatable/special_date.rb