Sha256: e99fc01faeca9a3d207abdb43f01a43592b4e6523d133f86121b4cb37f2f6f4c

Contents?: true

Size: 383 Bytes

Versions: 2

Compression:

Stored size: 383 Bytes

Contents

# frozen_string_literal: true

class ModelDate < ActiveRecord::Base
  normalizy :date ,           with: :date
  normalizy :date_format,     with: { date: { format: '%y/%m/%d' } }
  normalizy :date_time_begin, with: { date: { adjust: :begin } }
  normalizy :date_time_end,   with: { date: { adjust: :end } }
  normalizy :date_time_zone,  with: { date: { time_zone: 'Brasilia' } }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
normalizy-1.5.0 spec/support/models/model_date.rb
normalizy-1.4.0 spec/support/models/model_date.rb