Jean-Philippe Lang
7c568cccaf
Adds a helper for displaying validation error messages.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9017 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-26 18:07:13 +00:00
Toshi MARUYAMA
9c264a7e66
Rails3: scm: cvs: fix error of test_fetch_changesets_incremental at unit model test
...
On Rails 3.1, ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection error raises.
For more details, see r7062.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9016 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-26 14:09:21 +00:00
Jean-Philippe Lang
ad2036aaba
Rails 3.1 compatibility (order declared on association takes precedence).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9015 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-26 13:05:19 +00:00
Jean-Philippe Lang
39aa4cac86
Moved tests about session reset to functional tests.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9014 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-26 12:00:41 +00:00
Jean-Philippe Lang
65b4d8a649
Make sure that projects_to_search is a Project Array.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9013 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-26 11:42:29 +00:00
Toshi MARUYAMA
3363e4f790
remove trailing white-spaces from app/models/attachment.rb
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9012 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-26 10:16:09 +00:00
Toshi MARUYAMA
aa0935c13b
Rails3: html_safe for project_tree_options_for_select method in application helper
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9011 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-26 07:10:54 +00:00
Toshi MARUYAMA
8e899d9677
remove trailing white-spaces from vendor/plugins/acts_as_watchable/lib/acts_as_watchable.rb
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9010 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-26 04:28:12 +00:00
Jean-Philippe Lang
33d4821923
Rewrite test without shoulda macros.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9009 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-25 20:47:23 +00:00
Jean-Philippe Lang
4f153083ac
Removed assertions on blank template.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9008 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-25 20:42:31 +00:00
Jean-Philippe Lang
4f31027f08
Rails 3.1 compatibility.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9007 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-25 16:33:00 +00:00
Jean-Philippe Lang
62c8ad4df4
Rails 3.1 compatibility.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9006 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-25 16:31:13 +00:00
Jean-Philippe Lang
888287c602
Rails 3.1 compatibility.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9005 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-25 15:23:20 +00:00
Jean-Philippe Lang
10a37f4b6b
Rails 3.1 compatibility.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9004 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-25 15:20:28 +00:00
Etienne Massip
2b12146e81
Updated Ruby required version.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9003 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-25 13:26:51 +00:00
Jean-Philippe Lang
b6742bda3d
Code cleanup.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9002 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-25 13:04:34 +00:00
Jean-Philippe Lang
cf9154f924
Can not use Project#find on scopes with Rails 3.1.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9001 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-25 12:57:30 +00:00
Jean-Philippe Lang
0cc60f3631
Use content_tag for empty option.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9000 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-25 12:37:28 +00:00
Jean-Philippe Lang
21607751c9
Clean up assertion.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8999 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-25 12:35:22 +00:00
Jean-Philippe Lang
56a5f598f1
Preserve xml output with Rails 3.1.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8998 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-25 12:19:56 +00:00
Jean-Philippe Lang
231683e8d7
Undefined #builtin= with Rails 3.1.3.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8997 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-25 11:48:29 +00:00
Jean-Philippe Lang
a98b65c2d4
Fixed migration broken with Rails 3.1.3 ( #10320 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8996 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-25 11:46:19 +00:00
Jean-Philippe Lang
f01b97eb06
YAML files parsing issues.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8995 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-25 11:33:30 +00:00
Jean-Philippe Lang
b795bd5ace
Fixed escaping issue with Rails 3.1.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8994 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-25 11:06:14 +00:00
Jean-Philippe Lang
61b14f6391
Use content_tag for empty option.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8993 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-25 11:04:38 +00:00
Jean-Philippe Lang
9964e20a03
Adds missing format parameter.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8992 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-25 10:41:22 +00:00
Jean-Philippe Lang
28503d83cb
Do not do assertions on mail class.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8991 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-25 09:58:23 +00:00
Jean-Philippe Lang
f1b26008b8
Fixed escaping issue with Rails 3.1.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8990 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-25 09:37:18 +00:00
Jean-Philippe Lang
36fa1ff9a9
Use content_tag for "no change" options.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8989 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-25 09:29:56 +00:00
Toshi MARUYAMA
b4630c03f7
Rails3: prevent double rendering file view and annotate on Rails 3.0.11 and Rails 3.1.3
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8988 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-25 06:01:48 +00:00
Toshi MARUYAMA
b7ead65fde
Rails3: test: fix ordering functional/comments_controller_test.rb
...
On Rails 3.0.11, test fails.
<pre>
Failure: <"This is a test comment"> expected but was
<"my first comment">.
test_add_comment(CommentsControllerTest)
test/functional/comments_controller_test.rb:34:in `test_add_comment'
</pre>
Contributed by Sylvain Utard.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8987 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-25 01:43:11 +00:00
Jean-Philippe Lang
f04c7a7680
Fixed Version#issues_progress for Rails 3.1.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8986 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-25 00:07:09 +00:00
Jean-Philippe Lang
30282f20da
Fixed escaping issues in #textilizable with Rails 3.1.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8985 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-25 00:00:58 +00:00
Jean-Philippe Lang
7ad40e22fe
Replace auto_link with link_to in email templates.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8984 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-24 23:16:59 +00:00
Jean-Philippe Lang
4a6de486ba
Use fixture.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8983 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-24 21:24:00 +00:00
Jean-Philippe Lang
d04b4aafb6
Use :joins instead of :include.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8982 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-24 18:55:09 +00:00
Jean-Philippe Lang
cc19635b6e
Potential test failure fixed.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8981 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-24 18:43:35 +00:00
Jean-Philippe Lang
430477d4d6
Round hours when reading TimeEntry attribute.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8980 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-24 18:40:22 +00:00
Jean-Philippe Lang
492cce7975
Cleanup instance variables when reloading a project.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8979 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-24 18:38:05 +00:00
Jean-Philippe Lang
67d816705d
Removed useless option.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8978 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-24 18:27:38 +00:00
Jean-Philippe Lang
528735b955
Use subclasses method instead of class variable.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8977 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-24 18:23:58 +00:00
Toshi MARUYAMA
55a8087f67
Rails3: scm: mercurial: use .to_s for overriding human_attribute_name parameter
...
On Rails 3.0.11, parameter is symbol not string in activerecord validation.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8976 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-24 14:59:54 +00:00
Toshi MARUYAMA
ebb109b67e
Rails3: scm: git: use .to_s for overriding human_attribute_name parameter
...
On Rails 3.0.11, parameter is symbol not string in activerecord validation.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8975 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-24 14:59:31 +00:00
Toshi MARUYAMA
e6916cf72f
Rails3: scm: filesystem: use .to_s for overriding human_attribute_name parameter
...
On Rails 3.0.11, parameter is symbol not string in activerecord validation.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8974 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-24 14:59:06 +00:00
Toshi MARUYAMA
7100ca61ba
Rails3: scm: darcs: use .to_s for overriding human_attribute_name parameter
...
On Rails 3.0.11, parameter is symbol not string in activerecord validation.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8973 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-24 14:58:43 +00:00
Toshi MARUYAMA
e5bcac1572
Rails3: scm: cvs: use .to_s for overriding human_attribute_name parameter
...
On Rails 3.0.11, parameter is symbol not string in activerecord validation.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8972 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-24 14:58:18 +00:00
Toshi MARUYAMA
565ac00b70
Rails3: scm: bazaar: use .to_s for overriding human_attribute_name parameter
...
On Rails 3.0.11, parameter is symbol not string in activerecord validation.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8971 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-24 14:57:52 +00:00
Toshi MARUYAMA
cd9b62d734
Rails3: scm: use .to_s for overriding human_attribute_name parameter at repository model
...
On Rails 3.0.11, parameter is symbol not string in activerecord validation.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8970 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-24 14:57:26 +00:00
Toshi MARUYAMA
a4ee104bd7
Rails3: use .to_s for overriding human_attribute_name parameter at group model
...
On Rails 3.0.11, parameter is symbol not string in activerecord validation.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8969 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-24 14:56:54 +00:00
Toshi MARUYAMA
1f2f32f58c
scm: cvs: add test to override human_attribute_name
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8968 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-24 14:02:26 +00:00