From 0a04dcd23b4e9ef71586e131a646decee2a67061 Mon Sep 17 00:00:00 2001 From: simon Date: Thu, 12 Feb 2009 00:06:36 +0100 Subject: * added missing associations --- app/models/user.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/models/user.rb') diff --git a/app/models/user.rb b/app/models/user.rb index 3ac0712..2bb4879 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -1,9 +1,14 @@ require 'digest/sha1' class User < ActiveRecord::Base + # Mixins and Plugins include Authentication include Authentication::ByPassword + # Associations + has_many :permissions + + # Validations validates_presence_of :login validates_length_of :login, :within => 3..40 validates_uniqueness_of :login -- cgit v1.3