Sha256: 7e44ae61b828287da1a8dfc86546cdbbceb969d9d298beb36e162c2deea6fea3
Contents?: true
Size: 270 Bytes
Versions: 3
Compression:
Stored size: 270 Bytes
Contents
# frozen_string_literal: true class CommentInput < Upgrow::Input attribute :article_id attribute :user_id attribute :body validates :article_id, presence: true validates :user_id, presence: true validates :body, presence: true, length: { minimum: 10 } end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
upgrow-0.0.5 | test/dummy/app/inputs/comment_input.rb |
upgrow-0.0.4 | test/dummy/app/inputs/comment_input.rb |
upgrow-0.0.3 | test/dummy/app/inputs/comment_input.rb |