diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-04-30 14:06:45 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-04-30 14:06:45 +0000 |
commit | d28743662776c113cd38f4456ade0cd665cc57dc (patch) | |
tree | 627643495902151fe4201c3d1a22fcca2f029a14 /app | |
parent | 666d3d6472e276e14cec57bbff2642d3fc7f3490 (diff) | |
download | redmine-d28743662776c113cd38f4456ade0cd665cc57dc.tar.gz redmine-d28743662776c113cd38f4456ade0cd665cc57dc.zip |
Merged r3678 from trunk.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/0.9-stable@3712 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/models/principal.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/principal.rb b/app/models/principal.rb index 8b46c7ff9..58c3f0497 100644 --- a/app/models/principal.rb +++ b/app/models/principal.rb @@ -16,7 +16,7 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. class Principal < ActiveRecord::Base - set_table_name 'users' + set_table_name "#{table_name_prefix}users#{table_name_suffix}" has_many :members, :foreign_key => 'user_id', :dependent => :destroy has_many :memberships, :class_name => 'Member', :foreign_key => 'user_id', :include => [ :project, :roles ], :conditions => "#{Project.table_name}.status=#{Project::STATUS_ACTIVE}", :order => "#{Project.table_name}.name" |