aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add tests for ActiveSupport::Rescuable. Use ActiveSupport::Rescuable in ↵Pratik Naik2008-10-045-119/+136
| | | | ActionController::Base.
* First draft of ActiveSupport::RescuableNorbert Crombach2008-10-041-0/+74
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Ensure Model.sum and Model.avg typecast appropriately. [#1066 state:resolved]Pratik Naik2008-10-042-6/+10
| | | | | Model.sum delegates typecasting to the column being summed. If that's not feasible, returns a string. Model.avg always returns big decimal.
* 1.8 compatibility for random_number method on SecureRandom.Michael Koziarski2008-10-042-2/+6
| | | | 1.9 has its own version.
* Fix mismatched assertions.Michael Koziarski2008-10-041-2/+2
|
* Ensure rescue_from handlers are respected inside tests. [#835 state:resolved]Pratik Naik2008-10-043-43/+30
| | | | | | Note : If you're not using rescue_from, you should overrider rescue_action_without_handler() method and not rescue_action(). Afterwards, you can set request.remote_addr to a non "0.0.0.0" value for testing the overridden behavior.
* Remove HasManyAssociationStrategy and move the logic to ↵Pratik Naik2008-10-042-27/+21
| | | | ActiveRecord::Reflection::ThroughReflection.
* Introduce ActiveRecord::Reflection::ThroughReflection to simplify hm:t ↵Pratik Naik2008-10-042-53/+70
| | | | reflection logic
* Fix has_many :through when the source is a belongs_to association. [#323 ↵Zach Dennis2008-10-046-11/+73
| | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Try reloading model on class mismatch [#229 state:resolved]Lawrence Pit2008-10-042-1/+21
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Return processing lock to dispatcher, the finer grained lock was ↵Aliaksey Kandratsenka2008-10-042-9/+14
| | | | | | | | | | incompatible with the reloading in development mode. This commit also adds ActionController::Dispatcher#dispatch_unlocking -- non-locking version of dispatch. It's named anologously to POSIX {getc,getchar,...}_unlocked functions. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1170 state:committed]
* Fix performance bug in AttibuteMethods#respond_to? in handling of private ↵Aliaksey Kandratsenka2008-10-041-1/+3
| | | | | | | | | | | methods We have hit dramatic increase in tests time after upgrading rails. Profiling revealed this particular place. After this fix our test times returned back to norm. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1173 state:committed]
* call clear_active_connections! in :after_dispatch to give pooled connections ↵Aliaksey Kandratsenka2008-10-042-1/+17
| | | | | | | | | | | back This fixes connection pool exhaustion for web servers which create new thread per connection (e.g. Webrick). integration.rb changes are required to keep test transaction active for several requests. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1171 state:committed]
* made ConnectionPool#checkout more robust by trying to loot dead threads when ↵Aliaksey Kandratsenka2008-10-041-1/+5
| | | | | | | | pool is empty Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1169 state:committed]
* Fix race in ConnectionPool#checkoutAliaksey Kandratsenka2008-10-041-15/+14
| | | | | | | After releasing monitor some connection(s) may appear in pool before monitor is re-aquired. When this happens we'll wait for connection which is already available. Signed-off-by: Michael Koziarski <michael@koziarski.com>
* don't quote decimal values for mysql. It doesn't make sense and breaks in ↵Aliaksey Kandratsenka2008-10-041-1/+1
| | | | | | | newer versions of mysql Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1168 state:committed]
* Fixed load path for actionmailer and activesupport tests to always load from ↵madlep2008-10-042-1/+3
| | | | | | | | local lib files. [#983 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Add IMB DB support to Rails application generator. [#1136 state:resolved]Antonio Cangiano2008-10-042-1/+63
| | | | | | Usage : rails app_name -d ibm_db Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Make sure recreate MySQL test database with the proper encoding and ↵Luca Guidi2008-10-033-3/+8
| | | | | | | collation [#1165 state:resolved] Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1165 state:committed]
* Remove AS for oracle compatibilityMichael Koziarski2008-10-031-1/+1
|
* added nicer failure reporting to #assert_difference to tell you the ↵madlep2008-10-032-4/+25
| | | | | | | expression that failed rather than just the expected and actual values Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1161 state:committed]
* Provide alternate implementation of Object#subclasses_of for JRubyNick Sieger2008-10-031-12/+33
| | | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1144 state:committed]
* Dynamic finders should use the ActiveRecord::Base::find method instead of ↵Eloy Duran2008-10-033-13/+30
| | | | | | | | | | | | ::find_initial, :find_last, and ::find_all. This is so when people override ActiveRecord::Base::find, the new ::find method will also be invoked by the dynamic finders. Associations for instance do go through ::find, so this makes it more consistent. Also removed the unnecessary deprecation silence blocks. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1162 state:committed]
* Call controller_path instance method so it can be easily overridden [#1141 ↵David Masover2008-09-301-2/+2
| | | | | | state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Fix etag! and last_modified! to work as advertised.Michael Koziarski2008-09-302-3/+44
| | | | Add tests too.
* Remove unneeded interning.Michael Koziarski2008-09-301-3/+2
|
* fix eager loading's :condition sanitizing expanding against the wrong tableWill Bryant2008-09-291-5/+5
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* wrote a test showing eager loading's misbehavior (sanitizing against the ↵Will Bryant2008-09-291-0/+7
| | | | | | wrong table) when the association has a :conditions hash Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Add options to field_set_tagAndrew Kaspick2008-09-292-2/+14
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1116 state:committed]
* Protect body ivar from being clobbered by the mailer template assignsJoshua Peek2008-09-284-2/+19
|
* Ignore all exceptions for validates_acceptance_of columns fetch so it can ↵Tarmo Tänav2008-09-261-1/+1
| | | | | | run even without a database connection Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Changed ActiveRecord attributes to respect access control.Adam Milligan2008-09-242-5/+54
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1084 state:committed]
* Partially revert 185fe2e9cce737d69d3b47a656f3651ce152c0c1Michael Koziarski2008-09-242-2/+4
| | | | We shouldn't quote the unpack command's requirement as it's passed through GemRunner which takes care of it for us.
* Use ActiveSupport::SecureRandom instead of the strange fallback code.Michael Koziarski2008-09-241-22/+2
|
* Refactor configure_dependency_for_has_many to use a few more methods.Hongli Lai (Phusion)2008-09-241-3/+34
| | | | | | | Add an additional conditions option to make it slightly easier for certain plugins. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1087 state:committed]
* Allowed passing arrays-of-strings to :join everywhere. Merge duplicate join ↵Pivotal Labs2008-09-244-13/+68
| | | | | | | strings to avoid table aliasing problems. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1077 state:committed]
* Make AssociationCollection start transactions in the correct database.Hongli Lai (Phusion)2008-09-235-6/+48
| | | | | | | | | | AssociationCollection now starts transactions by calling AssociationCollection#transaction instead of @owner.transaction or @reflection.klass.transaction. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1081 state:committed]
* slice now returns indifferent hash if called on oneadam2008-09-231-1/+1
| | | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1096 state:committed]
* Adds failed test case for slicing hash with indifferent access with symbol keysadam2008-09-231-0/+10
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Modified ActiveSupport::Inflector#parameterize with code from slugalizer ↵Adam Cigánek2008-09-233-6/+21
| | | | | | | | | (http://github.com/henrik/slugalizer) Handles trailing and leading slashes, and squashes repeated separators into a single character. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1034 state:committed]
* Changelog entry for manfred's multibyte changesMichael Koziarski2008-09-221-0/+4
|
* Merge branch 'patches' into multibyteMichael Koziarski2008-09-2214-163/+439
|\
| * Bump the Version constants to align with the *next* release rather than the ↵Michael Koziarski2008-09-225-5/+5
| | | | | | | | | | | | previous release. This allows people tracking non-release gems or git submodules to use the constants.
| * Fixed AssetTag cache with with relative_url_root [#1022 state:resolved]Martin Rehfeld2008-09-222-1/+51
| | | | | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
| * Refactor AssetTagHelper and fix remaining threadsafe issues.Joshua Peek2008-09-222-152/+326
| |
| * Association#first and last should not load the association if not needed. ↵Jan De Poorter2008-09-223-4/+18
| | | | | | | | | | | | [#1091 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
| * Add Model#delete instance method, similar to Model.delete class method. ↵Hongli Lai (Phusion2008-09-214-2/+40
| | | | | | | | | | | | [#1086 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* | Set encoding of the multibyte test helpers file to UTF-8 so the strings can ↵Manfred Stienstra2008-09-211-0/+2
| | | | | | | | be read by Ruby 1.9.
* | Change all calls to String#chars to String#mb_chars.Manfred Stienstra2008-09-213-7/+7
| |
* | Change call to String#chars in inflector to String#mb_chars.Manfred Stienstra2008-09-211-1/+1
| |