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:
parent
f3e382732a
commit
995c9df195
3 changed files with 48 additions and 41 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue