UNCOV
1
|
class Permission < ApplicationRecord |
× |
2 |
# attr_accessible :name
|
|
3 |
|
|
UNCOV
4
|
validates :name, presence: true |
× |
UNCOV
5
|
validates :name, uniqueness: true |
× |
6 |
|
|
UNCOV
7
|
has_many :content_pages, dependent: :nullify |
× |
UNCOV
8
|
has_many :controller_actions, dependent: :nullify |
× |
UNCOV
9
|
end
|
× |