Michael Koziarski
c11ca0e0bf
Fix documentation error in xml serialization. [matt] Closes #9001
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7367 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-08-28 23:18:14 +00:00
Michael Koziarski
5972fd493b
Formatting and grammatical fixes for the acts_as_* documentation [seanhussey, kampers] Closes #9107
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7366 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-08-28 23:17:49 +00:00
Michael Koziarski
5840108b6e
Pass the right binding when string is passed to :if with validations. [caspercg] Closes #9300
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7365 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-08-28 23:17:17 +00:00
Michael Koziarski
93eaaef43c
Use extract_options instead of ad-hoc partial implementations. [norbert] Closes #9313
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7364 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-08-28 23:16:49 +00:00
Michael Koziarski
43ef688d74
Improve documentation for ActionController::Helpers [jardeon] Closes #9359
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7363 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-08-28 23:16:15 +00:00
Michael Koziarski
5cbc782ece
Remove unnecessary loop in validates_presence_of. [sur] Closes #9392
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7362 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-08-28 23:15:47 +00:00
Michael Koziarski
016947ceed
Make sure create! raises errors on validation when creating multiple records. [hasmanyjosh] Closes #8952
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7361 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-08-28 20:44:51 +00:00
David Heinemeier Hansson
5f163d256c
Back out of [7300] -- it screwed up nested XML
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7357 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-08-21 22:59:42 +00:00
David Heinemeier Hansson
d24c73dedb
Fix spacing
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7356 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-08-21 22:11:14 +00:00
David Heinemeier Hansson
3566be4728
Fixed that eager loading queries and with_scope should respect the :group option [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7355 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-08-21 21:58:38 +00:00
David Heinemeier Hansson
0e452bb02d
Fixed that eager loading queries should respect the :group option as well [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7354 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-08-21 21:29:21 +00:00
Rick Olson
0fc77b3928
correct the ActionCacheTest from [7346]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7348 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-08-20 13:48:13 +00:00
Rick Olson
1a459e8e7d
Fix bug where action caching sets the content type to the ActionCachePath object. Closes #9282 [mindforge]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7346 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-08-20 01:12:43 +00:00
Michael Koziarski
bba22cedb4
Add missing sentence
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7332 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-08-17 01:11:11 +00:00
Michael Koziarski
3280a6e51b
Improve url_for documentation for ActionController::Base and UrlRewriter. Closes #9022 . Closes #9077 . [juanjo.bazan]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7331 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-08-17 01:08:16 +00:00
Michael Koziarski
29b0707f07
Improve performance and functionality of the postgresql adapter. Closes #8049 [roderickvd]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7329 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-08-16 06:26:30 +00:00
Michael Koziarski
f008566d65
Don't clobber :includes passed to count on has_many association. Closes #9175 [danger]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7326 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-08-16 04:37:31 +00:00
Michael Koziarski
82b244e3ff
Make sure has_many associations honour :include when counting. Closes #9167 [danger]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7325 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-08-16 04:36:55 +00:00
Rick Olson
4954c77b69
add missing layouts from [7321]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7322 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-08-15 21:12:50 +00:00
Rick Olson
0127e586d0
Find layouts even if they're not in the first view_paths directory. Closes #9258 [caio]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7321 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-08-15 18:59:37 +00:00
Michael Koziarski
d0c83c4354
Fix failing active record store tests
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7317 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-08-14 10:06:07 +00:00
Michael Koziarski
7b64c37479
Add forgotten changelog entry
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7316 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-08-14 08:53:15 +00:00
Michael Koziarski
5b801b5960
Change the implementation of ActiveRecord's attribute reader and writer methods:
...
* Generate Reader and Writer methods which cache attribute values in hashes. This is to avoid repeatedly parsing the same date or integer columns.
* Move the attribute related methods out to attribute_methods.rb to de-clutter base.rb
* Change exception raised when users use find with :select then try to access a skipped column. Plugins could override missing_attribute() to lazily load the columns.
* Move method definition to the class, instead of the instance
* Always generate the readers, writers and predicate methods.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7315 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-08-14 08:53:02 +00:00
Michael Koziarski
55f444e694
Send freshness information when sending Etags. Without this internet explorer will not send conditional gets for a resource, but instead hold on to the responses for the current browser session.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7309 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-08-12 22:32:19 +00:00
Michael Koziarski
303d379dad
Ignore processing instructions when parsing html
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7300 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-08-10 03:24:40 +00:00
Tobias Lütke
18a4cc1bd2
Raise ActiveResource::Redirection on 301,302 http code
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7297 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-08-09 19:22:04 +00:00
Michael Koziarski
d4bf5e9b34
Make habtm respect the :select option. Closes #9207 . [Aleksey Kondratenko]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7279 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-08-07 09:53:33 +00:00
Michael Koziarski
bb94ce92fc
Let inspect on AR classes work when the table doesn't exist. Closes #9194 [tarmo, nzkoz]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7278 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-08-06 00:18:50 +00:00
Michael Koziarski
b59e3d1897
Major improvement to the documentation for the options / select form helpers. Closes #9038 [kampers, jardeon, wesg]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7276 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-08-05 01:13:44 +00:00
Michael Koziarski
ab5e1f15a6
Fix number_to_human_size when using different precisions. Closes #7536 . [RichardStrand, mpalmer]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7275 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-08-05 01:00:54 +00:00
Michael Koziarski
c4c6662498
Performance enhancement for Base.exists?. CLoses #8769 . [hasmanyjosh]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7274 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-08-05 00:57:43 +00:00
Michael Koziarski
73f72eeec2
Make the utf-handler return the correct value for non-matching regular expressions. Closes #9049 [manfred]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7273 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-08-05 00:51:16 +00:00
Michael Koziarski
fe3e03e770
Add ljust, rjust and center to utf8-handler. Closes #9165 [manfred]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7272 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-08-05 00:48:00 +00:00
Rick Olson
4b64110086
Fix Time#advance bug when trying to advance a year from leap day. Closes #8655 [gbuesing]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7262 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-08-03 00:34:19 +00:00
David Heinemeier Hansson
bbbc45156b
Added partial layouts (see example in action_view/lib/partials.rb) [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7261 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-08-02 20:10:03 +00:00
Marcel Molina
be196f3f7e
Add support for []= on ActiveSupport::Multibyte::Chars. Closes #9142 . [ewan, manfred]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7257 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-07-31 04:59:10 +00:00
Rick Olson
ea07212d97
dont call #collect on a string when returning query cache results. Closes #9099 [norbert]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7239 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-07-25 13:05:58 +00:00
Rick Olson
f5ea6f880f
Perform a deep #dup on query cache results so that modifying activerecord attributes does not modify the cached attributes. [Rick]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7238 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-07-25 03:48:30 +00:00
Rick Olson
d51e7f8252
Ensure that has_many :through associations use a count query instead of loading the target when #size is called. Closes #8800 [lifo]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7237 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-07-25 03:09:21 +00:00
Rick Olson
b49fcde7e5
tiny doc patches [lifo]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7236 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-07-25 03:05:55 +00:00
Rick Olson
2d7afe4456
misc doc fixes + Add ActiveResource to Rails::Info. Closes #8741 , #9008 , #9089 [kampers]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7235 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-07-25 02:50:35 +00:00
Rick Olson
bdcbfa9944
Allow you to set custom :conditions on resource routes. [Rick]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7234 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-07-25 02:47:21 +00:00
Michael Koziarski
94e5b10aff
Use Gem.find_name instead of search when freezing gems. Prevent false positive for other gems with rails in the name. Closes #8729 [wselman]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7233 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-07-24 21:06:45 +00:00
David Heinemeier Hansson
6391e192f8
Fix load-order inconsistency ( closes #9081 ) [themug]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7225 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-07-24 18:36:13 +00:00
David Heinemeier Hansson
edd68a587f
Refactored in use of extract_options! ( closes #9079 ) [josh]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7220 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-07-24 16:48:57 +00:00
David Heinemeier Hansson
34b0811125
Added Array#extract_options! to encapsulate the pattern of getting an options hash out of a variable number of parameters ( closes #8759 ) [norbert]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7217 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-07-24 14:17:09 +00:00
Rick Olson
7de537dbf4
Automatically generate add/remove column commands in specially named migrations like AddLocationToEvent. Closes #9006 [zenspider]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7216 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-07-24 04:10:22 +00:00
David Heinemeier Hansson
1e1f93fd10
Added :unless clause to validations ( closes #8003 ) [monki]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7215 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-07-24 01:48:17 +00:00
David Heinemeier Hansson
230615b286
assert_difference belongs in Assertions, not forced onto TestCase ( closes #8894 ) [norbert]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7213 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-07-24 01:23:15 +00:00
David Heinemeier Hansson
937a7abe45
Fixed that file.content_type for uploaded files would include a trailing \r #9053 [bgreenlee]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7212 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-07-24 01:20:18 +00:00