Sha256: 3f0e4577038139209e66da7404dc3a4309845d4002ccb2dfd81fe3c17a7b5d63
Contents?: true
Size: 298 Bytes
Versions: 18
Compression:
Stored size: 298 Bytes
Contents
module Challah module AuthablePermissionUser def authable_permission_user class_eval do validates_presence_of :user_id, :permission_id validates_numericality_of :user_id, :permission_id belongs_to :user belongs_to :permission end end end end
Version data entries
18 entries across 18 versions & 1 rubygems