Sha256: 1992e2a043f9ce7d169ccce532306dfce6a9500e6308001a761d6e0a9baab1a6

Contents?: true

Size: 296 Bytes

Versions: 3

Compression:

Stored size: 296 Bytes

Contents

module Challah::Rolls
  module PermissionRole
    def challah_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

3 entries across 3 versions & 1 rubygems

Version Path
challah-rolls-0.2.0 lib/challah/rolls/permission_role.rb
challah-rolls-0.1.1 lib/challah/rolls/permission_role.rb
challah-rolls-0.1.0 lib/challah/rolls/permission_role.rb