blob: 3914c9c91a38935c9a30f47fb4801ef7d05189e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
class Permission < ActiveRecord::Base
# Validations
validates_presence_of :user_id, :node_id, :granted
# Associations
belongs_to :user
belongs_to :node
# Security
attr_protected :user_id, :node_id, :granted # Allow no mass assignments
end
|