Michael Koziarski
aa32f66ebb
Add :allow_blank to validations. Like allow_nil, but for values which are +blank?+. [jnoon] Closes #7383
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7407 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-05 05:37:52 +00:00
Rick Olson
51977bc261
Fix bug where unserializing an attribute attempts to modify a frozen @attributes hash for a deleted record. [Rick]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7406 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-04 17:32:48 +00:00
Michael Koziarski
3bbef581af
Work around mysql limitations for defaults on text columns with not null. Closes #9324 [caio]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7405 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-04 02:44:10 +00:00
Michael Koziarski
109bf67f3f
Add missing changelog entry
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7404 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-03 00:18:49 +00:00
Michael Koziarski
f81dae3fca
Remove deprecated functionality from actionpack. Closes #8958 [lifofifo]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7403 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-03 00:18:30 +00:00
Michael Koziarski
6246fad19a
Remove deprecated functionality from edge rails. Closes #9387 [lifofifo]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7402 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-03 00:17:09 +00:00
Michael Koziarski
f0dbd22c46
Allow Float#round to take a precision argument. Closes #8626 [norbert]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7401 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-02 23:54:08 +00:00
Michael Koziarski
21837821a8
Add array support to remote_form_for for polymorphic urls. Closes #8654 [jade]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7400 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-02 23:53:31 +00:00
Michael Koziarski
b18d9568a6
Ensure QueryCache doesn't try to dup numeric results (does not affect the major OS database). Closes #7661 [tomafro, nzkoz]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7399 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-02 23:52:58 +00:00
Michael Koziarski
6b9b511de1
Fix task description for db:sessions:create. Closes #9419 [topfunky]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7398 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-02 23:52:24 +00:00
Michael Koziarski
a79ac12c4e
Make auto link behave well with URLs containing email addresses. Closes #7313 [jeremymcnally]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7397 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-02 23:52:01 +00:00
Michael Koziarski
bde8be41fb
Properly quote the arguments to visual_effect. Closes #7220 [jeremymcanally]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7396 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-02 23:51:27 +00:00
Michael Koziarski
2fc4be68a6
Remove duplication in test_help.rb Closes #3328 [jarkko]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7395 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-02 23:50:51 +00:00
Jeremy Kemper
ed09b621bd
Documentation tweaks and fixes. Closes #9454 [sur, kampers]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7383 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-08-31 19:07:42 +00:00
Jeremy Kemper
33e5e41dda
request.host works with IPv6 addresses. Closes #9458 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7382 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-08-31 19:03:42 +00:00
Jeremy Kemper
55efae2387
Performance: absorb instantiate and initialize_with_callbacks into the Base methods.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7380 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-08-31 01:56:39 +00:00
Michael Koziarski
35ade47a30
Fix incorrectly named instance variable.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7372 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-08-29 03:43:08 +00:00
Michael Koziarski
45ea329bcd
Remove commented out test which refers to old code, old bugs and uses ObjectSpace in a nasty way. [nzkoz]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7371 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-08-29 03:33:26 +00:00
Michael Koziarski
719d3e8a9a
Use mocha to avoid the sleep calls in the compiled_template tests. [tarmo] Closes #9372
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7370 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-08-29 03:14:15 +00:00
Michael Koziarski
c6a18308ef
Only reload routes.rb if its been modified. [Dreamer3]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7369 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-08-29 03:01:11 +00:00
Michael Koziarski
18a3333a30
Formatting, grammar and spelling fixes for the associations documentation. [seanhussey] Closes #8899
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7368 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-08-28 23:18:57 +00:00
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