Commit 043fafdb4dc9baff23d7f670aa6a682d4a94ca60

Authored by AntonioTerceiro
1 parent 0998e9de

ActionItem237: fixed a long-time problem when loading Person class without

loading Profile first. That's why you should specify class_name as strings and
not by using the class object.


git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1638 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/models/article.rb
... ... @@ -5,7 +5,7 @@ class Article < ActiveRecord::Base
5 5  
6 6 validates_uniqueness_of :slug, :scope => ['profile_id', 'parent_id'], :message => _('%{fn} (the code generated from the article name) is already being used by another article.')
7 7  
8   - belongs_to :last_changed_by, :class_name => Person.name, :foreign_key => 'last_changed_by_id'
  8 + belongs_to :last_changed_by, :class_name => 'Person', :foreign_key => 'last_changed_by_id'
9 9  
10 10 has_many :comments, :dependent => :destroy
11 11  
... ...