Module: Authorized::UserModel::PrepMethod

Defined in:
lib/authorized/user_model.rb

Instance Method Summary collapse

Instance Method Details

#authorized(options = {}) ⇒ Object



13
14
15
16
17
18
19
20
# File 'lib/authorized/user_model.rb', line 13

def authorized(options={})

	include Authorized::UserModel::InstanceMethods
	extend  Authorized::UserModel::ClassMethods

	has_and_belongs_to_many :roles,  :uniq => true

end