José Valim
312f433241
Clear DescendantsTracker on each request.
2010-06-19 17:51:44 +02:00
José Valim
d430db9fd4
Remove descendants warning while executing tests.
2010-06-19 17:16:11 +02:00
José Valim
033e0a041f
ActiveRecord and ActionPack now use the new descendants implementation.
2010-06-19 17:15:21 +02:00
José Valim
a2b7fcb07c
Change callbacks to automatically include DescendantsTracker and rename descendents to descendants.
2010-06-19 16:58:15 +02:00
José Valim
8db8c6f4ce
Add ActiveSupport::DescendantsTracker.
2010-06-19 16:44:35 +02:00
David Genord II
a186431414
form_for without :html and with :remote should not error
...
[#4902 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-06-18 13:59:28 -07:00
Josh Kalderimis
9d3eeb9053
fix for :shallow in router not generating helpers for create, update, and destroy actions when :only or :except are used
...
[#4900 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-06-18 13:59:14 -07:00
Jeremy Kemper
a55d83292f
Credit for the heavy lifting!
2010-06-17 22:18:12 -07:00
Gonçalo Silva
113b0ec03c
enable_stats added back in since Benchmarker doesn't start RubyProf
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-06-17 22:15:16 -07:00
Gonçalo Silva
0cef199c8e
check if the profiler patch is applied, otherwise GC::Profiler doesn't have the 'data' method
2010-06-17 19:18:53 -07:00
Gonçalo Silva
c8019cd04a
added information about what is being used
2010-06-17 19:18:53 -07:00
Gonçalo Silva
b169d83787
heap_live_objects+heap_free_objects is broken, use heap_total_objects instead
2010-06-17 19:18:53 -07:00
Gonçalo Silva
5e5d1babb0
also use GC profiler extended patch to retrieve GC time on 1.9
2010-06-17 19:18:53 -07:00
Gonçalo Silva
f02d3f9eee
ruby's GC doesn't support the time method, removed support for it
2010-06-17 19:18:52 -07:00
Gonçalo Silva
175164397b
use GC profiler extended patch to retrieve GC runs on 1.9
2010-06-17 19:18:52 -07:00
Gonçalo Silva
555c3b5abe
ruby's GC doesn't support collections and heap_info, RubyProf can handle it
2010-06-17 19:18:52 -07:00
Gonçalo Silva
4813462eea
GC at 1.9.X doesn't have malloc_allocated_size, remove support for it
2010-06-17 19:18:52 -07:00
Gonçalo Silva
36f5d09692
removed support for 1.8's GC alternative hacks (railsbench and lloyd patches). RubyProf can handle it
2010-06-17 19:18:52 -07:00
Gonçalo Silva
cb74cfc9c1
check if the data method is defined (meaning it's correctly patched)
2010-06-17 19:18:52 -07:00
Gonçalo Silva
901452d06a
the official profiler (present in 1.9) should have the highest priority
2010-06-17 19:18:52 -07:00
Gonçalo Silva
381a30fbba
don't set cpu_frequency if RubyProf resolved it
2010-06-17 19:18:52 -07:00
Aaron Patterson
bf6661c5d7
setting the timezone in postgres to whatever ruby thinks the timezone is [ #4895 state:resolved]
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-06-17 16:49:21 -07:00
Aaron Patterson
5ae7a9d31d
when the timezone is nil, a TimeWithZone object should not be constructed. [ #4881 state:resolved]
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-06-17 14:14:30 -07:00
Santiago Pastorino
84d387bc0f
Make text_helpers methods which return valid html to return it as safe and sanitize the input always unless :sanitize => false is set
...
[#4825 state:committed]
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com >
2010-06-17 13:34:10 -05:00
Xavier Noria
12eef93e89
documents how to run an individual test in AR
2010-06-17 17:41:39 +02:00
Andrew White
6db9558416
Add shallow routing option to new router [ #3765 status:committed]
...
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com >
2010-06-17 09:52:55 -05:00
Santiago Pastorino
7240a960f2
excerpt shoudn't return safe output test added
...
[#4878 ]
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com >
2010-06-17 09:41:04 -05:00
Wincent Colaiuta
a424808df9
truncate() should not try to produce HTML-safe output
...
As discussed in Lighthouse ticket #4825 and ticket #4878 , the truncate()
method cannot guarantee safe output for all possible inputs/offsets, so
it is best to leave the output unsafe so that it gets escaped when used
in a view.
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com >
2010-06-17 09:41:04 -05:00
José Valim
69bc8b26a9
Merge branch 'master' of github.com:rails/rails
2010-06-17 13:49:27 +02:00
José Valim
7ba756281a
Add a failing test for ticket #4874
2010-06-17 13:48:02 +02:00
Xavier Noria
2aa4e5f3fa
pdoc tasks publishe APIs in api.rubyonrails.org
2010-06-16 22:39:13 +02:00
Xavier Noria
01f3f0dbae
use RDoc 2.2 to generate the documentation of individual components
2010-06-16 22:30:06 +02:00
Xavier Noria
145fbdff67
removes the documentation group from the Gemfile, thus making RDoc 2.2 required in dev machines
...
In order to generate the API with that particular version we need to activate the gem
in the Rakefile before rake. Therefore the Rakefile does not honor --without for that
group now. Installing rdoc is no big deal anyway.
2010-06-16 19:28:23 +02:00
Aaron Patterson
8e56085817
use assert_in_delta() for floating point comparisons in tests [ #4871 state:resolved]
...
Signed-off-by: Carl Lerche <carllerche@mac.com >
2010-06-16 10:09:59 -07:00
Xavier Noria
07c6b7a6ad
migrates the Jamis template to RDoc 2.x, the root Rakefile requires RDoc 2.2
...
To understand the changes in horo.rb check rdoc/template.rb in a RDoc 2.x
2010-06-16 04:06:20 +02:00
Xavier Noria
5cd3c2a855
Merge remote branch 'rails/master'
2010-06-14 23:24:41 +02:00
Xavier Noria
f17159b029
edit pass: the names of Rails components have a space, ie, "Active Record", not "ActiveRecord"
2010-06-14 23:22:04 +02:00
rspeicher
b442edbfcc
Fix minor typos and inconsistencies, and one minor grammar change
2010-06-14 17:19:15 -04:00
Xavier Noria
94de5b8cb5
edit pass in #define_callbacks rdoc
2010-06-14 22:52:47 +02:00
Neeraj Singh
e4c8bc1b34
adding to the :kind documentation for ActiveSupport callbacks
2010-06-14 16:18:29 -04:00
Neeraj Singh
ed9a183ea4
clearer documentation of how scope applies to ActiveSupport callbacks
2010-06-14 15:48:09 -04:00
Xavier Noria
4a8c8804ff
refactors AR::Base#reset_table_name
2010-06-14 18:36:04 +02:00
Thiago Pradi
8d82bef58a
Documentation for #quoted_table_name method
...
Signed-off-by: Xavier Noria <fxn@hashref.com >
2010-06-14 17:32:45 +02:00
Neeraj Singh
f587dec2c9
truncate safe method description changes
2010-06-14 09:12:10 -04:00
Rizwan Reza
e67c28dfe0
Added headings to serializers.
2010-06-14 13:59:55 +04:30
Rizwan Reza
7d7d54fa1f
Revised the rest of the files from ActiveModel.
2010-06-14 13:56:51 +04:30
Rizwan Reza
2572af11ce
Revised and added headings.
2010-06-14 13:49:01 +04:30
Rizwan Reza
de12b5e616
Revised naming.rb and lint.rb
2010-06-14 13:44:49 +04:30
Rizwan Reza
c5db6450ec
Added headings and revised active_model.rb/lint.rb grammatically
2010-06-14 13:43:06 +04:30
Rizwan Reza
626586b8c7
Minor changes to active_model/errors.rb
2010-06-14 13:40:57 +04:30