Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Run `Item.new(expire_date: 444).valid?` in console
  • Loading branch information
tagliala committed Feb 28, 2023
1 parent 0a89435 commit 3cc1248
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/models/item.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# frozen_string_literal: true

class Item
include ActiveModel::Model

attr_accessor :expire_date

validates_date :expire_date
end

0 comments on commit 3cc1248

Please sign in to comment.