Sha256: bb5facceb221622ba693722c7dc0fcb9b8377074546c32a8c77ac1935ec1b971

Contents?: true

Size: 241 Bytes

Versions: 4

Compression:

Stored size: 241 Bytes

Contents

module IssueValidation
  extend ActiveSupport::Concern

  included do
    validates :project_id, presence: true, numericality: true
    validates :title, presence: true
    validates :creator_id, presence: true, numericality: true
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
model_base_generators-0.2.3 example/app/validations/issue_validation.rb
model_base_generators-0.2.2 example/app/validations/issue_validation.rb
model_base_generators-0.2.1 example/app/validations/issue_validation.rb
model_base_generators-0.2.0 example/app/validations/issue_validation.rb