more diary entry tests, and a minor fix to the relation member that makes the code a bit more readable.

This commit is contained in:
Shaun McDonald 2008-11-11 18:07:59 +00:00
parent f3e382732a
commit 995c9df195
3 changed files with 48 additions and 41 deletions

View file

@ -10,7 +10,7 @@ class RelationMember < ActiveRecord::Base
end
def after_initialize
self[:member_class] = self.member_type.capitalize if !self.member_type.nil?
self[:member_class] = self.member_type.capitalize unless self.member_type.nil?
end
def before_save