Duff OMelia
e7cb8c844a
Ensure old buffers get properly cleared to avoid leaking memory
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-09-18 08:51:19 -05:00
Edgar J. Suarez
790ebf8eab
HTTP Accept header
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2008-09-18 11:15:48 +02:00
Pelle Braendgaard
7ecb9689b0
Added support for http_only cookies in cookie_store Added unit tests for secure and http_only cookies in cookie_store
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#1046 state:committed]
2008-09-17 13:20:16 +02:00
Philip Hallstrom
c47525a583
make db:migrate:redo rake task accept an optional VERSION to target that specific migration to redo
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2008-09-17 11:14:21 +02:00
Michael Koziarski
4db7e8de11
Update the documentation to reflect the change handling :group earlier
2008-09-16 18:50:36 +02:00
Michael Koziarski
4dae3649f0
Enhance the test "some string" method to support creating 'pending' tests.
...
If no block is provided to the test method, a default test will be generated which simply flunks. This makes it easy for you to generate a list of what you intend to do, then flesh it out with actual tests.
2008-09-16 16:50:14 +02:00
miloops
dc8bf7515d
When counting grouped records the target should be loaded to return a valid groups count result.
...
Without this change count_records will group for the count in the query and return erroneous results.
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#937 state:committed]
2008-09-15 18:32:05 +02:00
gbuesing
157141b294
TimeWithZone #wday, #yday and #to_date avoid trip through #method_missing
2008-09-14 23:07:48 -05:00
gbuesing
cce7ae5466
Add thorough tests for Time-object #past?, #future? and #today. Fix TimeWithZone #today? to use #time instead of #utc for date comparison. Update changelog. [ #720 state:resolved]
2008-09-14 22:56:32 -05:00
Clemens Kofler
bfa12d7a02
Introduce convenience methods past?, today? and future? for Date and Time classes to facilitate Date/Time comparisons.
2008-09-14 21:21:19 -05:00
Frederick Cheung
f636c6fda0
stop AR's debug.log filling with warnings about not being able to load fixture classes
...
[#1045 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2008-09-14 18:57:39 -07:00
Frederick Cheung
d51a39ff50
Deal with MySQL's quirky handling of defaults and blob/text columns
...
[#1043 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2008-09-14 17:11:22 -07:00
gbuesing
d95943b276
Multiparameter attributes skip time zone conversion for time-only columns [ #1030 state:resolved]
2008-09-14 18:16:50 -05:00
miloops
9c4730d01e
Base.skip_time_zone_conversion_for_attributes uses class_inheritable_accessor, so that subclasses don't overwrite Base [ #346 state:resolved]
2008-09-14 17:18:17 -05:00
Michael Koziarski
d28c724b40
Make sure the permissions check file is closed before being unlinked.
...
[#1035 state:committed]
2008-09-14 09:44:29 +02:00
Pratik Naik
a17027d13a
Merge docrails
2008-09-13 20:28:01 +01:00
Mislav Marohnić
96055414d6
Ensure Hash#except is allowed on a frozen hash. References #382
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-09-13 20:05:17 +01:00
Rich Cavanaugh
113de01eaf
Allow for the dirty tracking to work with the aliased name of aliased attributes.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#812 state:committed]
2008-09-13 11:41:14 +02:00
Jon Leighton
fcf31cb752
Support for updating a belongs to association from the foreign key (without saving and reloading the record)
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#142 state:committed]
2008-09-13 11:08:29 +02:00
miloops
646b5bfa61
Use select and change test so new tests can work on postgres.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2008-09-12 12:27:03 +02:00
miloops
a37c5ae961
Improve test coverage when using the group option in find, has_many or has_and_belongs_to_many.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2008-09-11 22:51:57 +02:00
Michael Koziarski
095ad690f3
Remove the .to_s fix in validates_uniqueness_of, as Chars get quoted correctly.
2008-09-11 22:51:57 +02:00
Manfred Stienstra
babbc1580d
Fix ActiveRecord::Base.quote_bound_value for ActiveSupper::Multibyte::Chars values.
...
- Adds String#acts_like_string?
- Adds Chars#acts_like_string?
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#1029 state:committed]
2008-09-11 22:51:26 +02:00
wmoxam
923f4ecad2
Fixes validates_uniquness_of problem with case insensitive string containing newline characters
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2008-09-11 17:40:14 +02:00
miloops
c98cb8ffc2
Add --debugger option to script/console.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#1025 state:committed]
2008-09-11 17:12:00 +02:00
Michael Koziarski
1ddde91303
Flesh out the parameterize method to support non-ascii text and underscores.
2008-09-11 17:10:17 +02:00
Jamis Buck
46bac29de7
Add the Asia/Colombo definition from the tzinfo gem
2008-09-11 08:33:39 -06:00
Michael Koziarski
9460d45988
Add missing assert_deprecated calls to prevent spam during test runs
2008-09-11 11:21:22 +02:00
Sven Fuchs
e826c99201
add activerecord tests to make sure the deprecated %s and %d interpolation syntax still works
...
[#1016 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2008-09-10 19:28:36 -07:00
Sven Fuchs
31dcd78111
add activerecord tests for deprecation of %s and %d in error messages (and translations in general)
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2008-09-10 19:28:36 -07:00
Sven Fuchs
79c8b104d6
change activerecord validation tests to not use the deprecated interpolation syntax any more
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2008-09-10 19:28:36 -07:00
Joshua Peek
70a4f6c2dd
Switched computed public paths cache over to a simple hash w/ mutex
2008-09-10 19:05:53 -05:00
Joshua Peek
2ba9ca95f9
Removed monitor from MemoryStore and created a seperate threadsafe store called SynchronizedMemoryStore
2008-09-10 18:56:03 -05:00
rsl
6ce13429cb
fixed association preloading to use = instead of IN when there's only one record
...
[#1013 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2008-09-10 14:11:00 -07:00
Jamis Buck
5bbca48c22
Fix Sri Jayawardenepura time zone to map to Asia/Colombo
2008-09-10 13:32:10 -06:00
Jeremy Kemper
c19c0e7872
Disable warnings in AP tests
2008-09-10 11:03:32 -07:00
Pratik Naik
9994f0d902
Revert "Add :accessible option to Associations for allowing mass assignments using hash. [ #474 state:resolved]"
...
This reverts commit e0750d6a5c .
Conflicts:
activerecord/CHANGELOG
activerecord/lib/active_record/associations.rb
activerecord/lib/active_record/associations/association_collection.rb
2008-09-10 18:50:01 +01:00
Rob Anderton
b518b6c0d3
Expanded documentation for new composed_of options
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#892 state:committed]
2008-09-10 18:28:57 +02:00
Rob Anderton
2cee51d5c1
Added :constructor and :converter options to composed_of and deprecated the conversion block
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2008-09-10 18:28:47 +02:00
Tarmo Tänav
7c9851dbb6
Support :limit on update_all so that has_many with :limit can be safely updated
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2008-09-10 13:41:49 +02:00
Tarmo Tänav
14d1560e85
Fixed test_find_last_by_one_attribute_caches_dynamic_finder for postgresql 8.3
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2008-09-10 13:40:45 +02:00
Sven Fuchs
a18ed6d563
Added ActionController::Translation module delegating to I18n #translate/#t and #localize/#l [status:committed #1008 ]
...
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com >
2008-09-10 00:39:54 -05:00
David Heinemeier Hansson
c55565b032
Merge branch 'master' of git@github.com:rails/rails
2008-09-10 00:37:04 -05:00
David Heinemeier Hansson
90366a1521
Added Inflector#parameterize for easy slug generation ("Donald E. Knuth".parameterize => "donald-e-knuth") #713 [Matt Darby]
2008-09-10 00:36:37 -05:00
David Heinemeier Hansson
b8e8be83e9
Added Inflector#parameterize for easy slug generation ("Donald E. Knuth".parameterize => "donald-e-knuth") #713 [Matt Darby]
2008-09-10 00:26:50 -05:00
Alastair Brunton
b141624abb
Added image_submit_tag confirm option [status:committed #784 ]
...
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com >
2008-09-10 00:13:35 -05:00
Jose Fernandez
184cf27b12
The FormTagHelper#submit_tag helper will now pass along the original value of the submit button to the params if the :disable_with option is used [status:committed #633 ]
...
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com >
2008-09-10 00:02:23 -05:00
David Heinemeier Hansson
6dc9173a63
Missing doc updates
2008-09-09 23:59:54 -05:00
Antonio Cangiano
854cf3d721
Fix for SQLite's db creation warnings [status:committed #614 ]
...
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com >
2008-09-09 23:56:37 -05:00
miloops
567392bff3
Added find_last_by dynamic finder [status:committed #762 ]
...
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com >
2008-09-09 23:44:52 -05:00