Sha256: 908b9fd8ae6901a4ffca8daf6a58c9ff959bd3c5f1679f4bf72d5c19bcc9b491

Contents?: true

Size: 296 Bytes

Versions: 15

Compression:

Stored size: 296 Bytes

Contents

module Mtdevise
	class Role < ActiveRecord::Base
		has_and_belongs_to_many :mtdevise_users, :join_table => :mtdevise_users_roles
		belongs_to :resource, :polymorphic => true

		validates :resource_type,
			:inclusion => { :in => Rolify.resource_types },
			:allow_nil => true

		scopify

	end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
mtdevise-1.8.6 app/models/mtdevise/role.rb
mtdevise-1.8.5 app/models/mtdevise/role.rb
mtdevise-1.8.0 app/models/mtdevise/role.rb
mtdevise-1.7.11 app/models/mtdevise/role.rb
mtdevise-1.7.8 app/models/mtdevise/role.rb
mtdevise-1.7.5 app/models/mtdevise/role.rb
mtdevise-1.7.1 app/models/mtdevise/role.rb
mtdevise-1.7.0 app/models/mtdevise/role.rb
mtdevise-1.6.6 app/models/mtdevise/role.rb
mtdevise-1.6.5 app/models/mtdevise/role.rb
mtdevise-1.6.3 app/models/mtdevise/role.rb
mtdevise-1.6.0 app/models/mtdevise/role.rb
mtdevise-1.5.3 app/models/mtdevise/role.rb
mtdevise-1.5.2 app/models/mtdevise/role.rb
mtdevise-1.5.0 app/models/mtdevise/role.rb