Sha256: f32b56c34e4c9f50249391d4779d8fe85213875aa0417d686239120a8e3a579d

Contents?: true

Size: 206 Bytes

Versions: 4

Compression:

Stored size: 206 Bytes

Contents

module IssueCommentValidation
  extend ActiveSupport::Concern

  included do
    validates :issue_id, presence: true, numericality: true
    validates :user_id, presence: true, numericality: true
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
model_base_generators-0.4.0 examples/rails-5.0/app/validations/issue_comment_validation.rb
model_base_generators-0.3.9 example/app/validations/issue_comment_validation.rb
model_base_generators-0.3.8 example/app/validations/issue_comment_validation.rb
model_base_generators-0.3.7 example/app/validations/issue_comment_validation.rb