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

Version Path
challah-0.6.2 lib/challah/authable/permission_user.rb
challah-0.6.1 lib/challah/authable/permission_user.rb
challah-0.6.0 lib/challah/authable/permission_user.rb
challah-0.5.4 lib/challah/authable/permission_user.rb
challah-0.5.3 lib/challah/authable/permission_user.rb
challah-0.5.2 lib/challah/authable/permission_user.rb
challah-0.5.1 lib/challah/authable/permission_user.rb
challah-0.5.0 lib/challah/authable/permission_user.rb
challah-0.4.1 lib/challah/authable/permission_user.rb
challah-0.4.0 lib/challah/authable/permission_user.rb
challah-0.3.5 lib/challah/authable/permission_user.rb
challah-0.3.4 lib/challah/authable/permission_user.rb
challah-0.3.3 lib/challah/authable/permission_user.rb
challah-0.3.2 lib/challah/authable/permission_user.rb
challah-0.3.1 lib/challah/authable/permission_user.rb
challah-0.3.0 lib/challah/authable/permission_user.rb
challah-0.2.1 lib/challah/authable/permission_user.rb
challah-0.2.0 lib/challah/authable/permission_user.rb