Sha256: 97a8dc7339ee2952394caab29beed0c95ea3a96d68c578b4b4ca179c17273564
Contents?: true
Size: 442 Bytes
Versions: 10
Compression:
Stored size: 442 Bytes
Contents
module Arpa module Validators class ProfileValidator include ActiveModel::Validations attr_reader :name, :description, :role_ids validates :name, :description, presence: true validates :role_ids, presence: { message: :many_blank } def initialize(profile) @name = profile.name @description = profile.description @role_ids = profile.role_ids end end end end
Version data entries
10 entries across 10 versions & 1 rubygems