diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-03-15 22:11:02 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-03-15 22:11:02 +0000 |
commit | e6f58e4dcc2f7552109da139857a19b81c6f1fe1 (patch) | |
tree | b2b7aee365335b13fb3f8d2ebac44b518cbbcd71 /app/models/issue_custom_field.rb | |
parent | 192b9008bdc5590a041166635eb1aecae78df992 (diff) | |
download | redmine-e6f58e4dcc2f7552109da139857a19b81c6f1fe1.tar.gz redmine-e6f58e4dcc2f7552109da139857a19b81c6f1fe1.zip |
fixed #9308 table_name pre/suffix support
git-svn-id: http://redmine.rubyforge.org/svn/trunk@337 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/issue_custom_field.rb')
-rw-r--r-- | app/models/issue_custom_field.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/issue_custom_field.rb b/app/models/issue_custom_field.rb index 7759c9059..d087768a4 100644 --- a/app/models/issue_custom_field.rb +++ b/app/models/issue_custom_field.rb @@ -16,8 +16,8 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. class IssueCustomField < CustomField - has_and_belongs_to_many :projects, :join_table => "custom_fields_projects", :foreign_key => "custom_field_id" - has_and_belongs_to_many :trackers, :join_table => "custom_fields_trackers", :foreign_key => "custom_field_id" + has_and_belongs_to_many :projects, :join_table => "#{table_name_prefix}custom_fields_projects#{table_name_suffix}", :foreign_key => "custom_field_id" + has_and_belongs_to_many :trackers, :join_table => "#{table_name_prefix}custom_fields_trackers#{table_name_suffix}", :foreign_key => "custom_field_id" has_many :issues, :through => :issue_custom_values def type_name |