Sha256: c593736c8705a0b7be10b96431076bca02cadf9d59ec322569b729fa1b2b4698

Contents?: true

Size: 232 Bytes

Versions: 7

Compression:

Stored size: 232 Bytes

Contents

# encoding: UTF-8
module Report
  extend ActiveSupport::Concern

  included do
    field                 :report_date, type: Date
    validates_presence_of :report_date

    default_scope -> { order_by(report_date: :asc) }
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
character-1.0.6 app/models/concerns/report.rb
character-1.0.5 app/models/concerns/report.rb
character-1.0.4 app/models/concerns/report.rb
character-1.0.3 app/models/concerns/report.rb
character-1.0.2 app/models/concerns/report.rb
character-1.0.1 app/models/concerns/report.rb
character-1.0.0 app/models/concerns/report.rb