diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-04-27 16:28:35 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-04-27 16:28:35 +0000 |
commit | d940797aa79f9c12df154422768096f77285e378 (patch) | |
tree | f225a040f9d8584f5063b36fa85bfcf84962e8a1 /app/models/principal.rb | |
parent | d2f779d6e8cd8ffd42f0f2826e84876f2a19f916 (diff) | |
download | redmine-d940797aa79f9c12df154422768096f77285e378.tar.gz redmine-d940797aa79f9c12df154422768096f77285e378.zip |
set_table_name and set_locking_column are deprecated.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9549 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/principal.rb')
-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 f2bec0e26..32e330aed 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 "#{table_name_prefix}users#{table_name_suffix}" + self.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" |