Sha256: b49e430baf186126a4832aea2a4d6710cdffbb58ce4230185acecb28f3350950
Contents?: true
Size: 306 Bytes
Versions: 18
Compression:
Stored size: 306 Bytes
Contents
module Challah module AuthablePermissionRole def authable_permission_role class_eval do validates_presence_of :permission_id, :role_id validates_numericality_of :permission_id, :role_id belongs_to :role belongs_to :permission end end end end
Version data entries
18 entries across 18 versions & 1 rubygems