Sha256: 53ee092dac566b39f2925611c7c2f41b87edde6db69656b0c54be564b9c10ac9
Contents?: true
Size: 367 Bytes
Versions: 2
Compression:
Stored size: 367 Bytes
Contents
# frozen_string_literal: true # Class modeling Roles within the application class Role < ActiveRecord::Base has_and_belongs_to_many :users validates :name, uniqueness: true, format: { with: /\A[a-zA-Z0-9._-]+\z/, message: 'Only letters, numbers, hyphens, underscores and periods are allowed' } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hydra-role-management-1.0.2 | app/models/role.rb |
hydra-role-management-1.0.1 | app/models/role.rb |