aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Some basic tests for the :foreign_type option on belongs_to, which was ↵Jon Leighton2011-01-033-2/+33
| | | | previously completely untested.
* herp derpricating add_limit_offset!Aaron Patterson2011-01-033-12/+4
|
* User id instead of quoted_id to prevent double quoting. Fixes failing test ↵Robert Pankowecki (Gavdi)2011-01-041-1/+1
| | | | for bug #6036.
* Added one more failing test for bug #6036Robert Pankowecki (Gavdi)2011-01-041-0/+6
|
* Make sure that generator's default banner is showing its namespacePrem Sichanugrist2011-01-012-1/+11
| | | | This will make `rails g rspec:install --help` shows "rails generate rspec:install [options]" and not "rails generate install [options]"
* Merge remote branch 'jonleighton/association_fixes' into fuuuAaron Patterson2011-01-0126-255/+260
|\ | | | | | | | | | | | | | | | | | | | | | | | | * jonleighton/association_fixes: Rename AssociationReflection#primary_key_name to foreign_key, since the options key which it relates to is :foreign_key Support for :counter_cache on polymorphic belongs_to Refactor BelongsToAssociation to allow BelongsToPolymorphicAssociation to inherit from it Specify the STI type condition using SQL IN rather than a whole load of ORs. Required a fix to ActiveRecord::Relation#merge for properly merging create_with_value. This also fixes a situation where the type condition was appearing twice in the resultant SQL query. Verify that when has_many associated objects are destroyed via :dependent => :destroy, when the parent is destroyed, the callbacks are run Get rid of extra_conditions param from configure_dependency_for_has_many. I can't see a particularly plausible argument for this being used by plugins, and if they really want they can just redefine the callback or whatever. Note also that before my recent commit the extra_conditions param was completely ignored for :dependent => :destroy. And owner_quoted_id can go too Now we can drop-kick AssociationReflection#dependent_conditions into oblivion. Refactor configure_dependency_for_has_many to use AssociationCollection#delete_all. It was necessary to change test_before_destroy in lifecycle_test.rb so that it checks topic.replies.size *before* doing the destroy, as afterwards it will now (correctly) be 0.
| * Rename AssociationReflection#primary_key_name to foreign_key, since the ↵Jon Leighton2010-12-3116-54/+56
| | | | | | | | options key which it relates to is :foreign_key
| * Support for :counter_cache on polymorphic belongs_toJon Leighton2010-12-313-1/+14
| |
| * Refactor BelongsToAssociation to allow BelongsToPolymorphicAssociation to ↵Jon Leighton2010-12-316-120/+127
| | | | | | | | inherit from it
| * Specify the STI type condition using SQL IN rather than a whole load of ORs. ↵Jon Leighton2010-12-314-6/+21
| | | | | | | | Required a fix to ActiveRecord::Relation#merge for properly merging create_with_value. This also fixes a situation where the type condition was appearing twice in the resultant SQL query.
| * Verify that when has_many associated objects are destroyed via :dependent => ↵Jon Leighton2010-12-312-1/+25
| | | | | | | | :destroy, when the parent is destroyed, the callbacks are run
| * Get rid of extra_conditions param from configure_dependency_for_has_many. I ↵Jon Leighton2010-12-311-9/+3
| | | | | | | | can't see a particularly plausible argument for this being used by plugins, and if they really want they can just redefine the callback or whatever. Note also that before my recent commit the extra_conditions param was completely ignored for :dependent => :destroy.
| * And owner_quoted_id can go tooJon Leighton2010-12-313-22/+0
| |
| * Now we can drop-kick AssociationReflection#dependent_conditions into oblivion.Jon Leighton2010-12-311-11/+0
| |
| * Refactor configure_dependency_for_has_many to use ↵Jon Leighton2010-12-312-41/+24
| | | | | | | | AssociationCollection#delete_all. It was necessary to change test_before_destroy in lifecycle_test.rb so that it checks topic.replies.size *before* doing the destroy, as afterwards it will now (correctly) be 0.
* | render :template is faster than render :fileSantiago Pastorino2011-01-012-5/+4
| |
* | This is not needed anymoreSantiago Pastorino2011-01-011-3/+0
|/
* Recreate symlink in layouts for testsPiotr Sarnacki2010-12-311-0/+1
|
* Do not take gems' i18n locales while testing locales pathsPiotr Sarnacki2010-12-311-2/+8
|
* Don't be so picky on MissingTemplate error details, this fails randomly on ↵Piotr Sarnacki2010-12-311-4/+3
| | | | 1.8.7 because of not ordered hash
* added tests for the MissingTemplate exception message.Nick Sutterer2010-12-311-0/+21
|
* Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2010-12-311-1/+13
|\
| * Routing guide: clarify what the :as option does for scopesRyan Bigg2010-12-311-2/+2
| |
| * Routing guide: move scope documentation down to where it is referenced more ↵Ryan Bigg2010-12-311-10/+12
| | | | | | | | plainly
| * Routing guide: improve documentation for the scope method, demonstrating use ↵Ryan Bigg2010-12-311-0/+10
| | | | | | | | of named parameters
* | ActionController::Base.helpers.sanitize ignores case in protocolTimothy N. Tsvetkov2010-12-303-2/+8
| | | | | | | | | | | | [#6044 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* | Make sure Model#touch doesn't try to update non existing columnsPratik Naik2010-12-302-2/+4
| |
* | contrib_guide.gsub!("aptitude", "apt-get")Xavier Noria2010-12-301-4/+4
| | | | | | | | | | | | | | | | It turns out aptitude has been removed from Ubuntu 10.10 and while you can manually install it, apt-get is the blessed package manager. Google for "aptitude removed from Ubuntu" for more details. Thanks to Rafael Mendonça França for pointing this out.
* | process_action accepts multiple args, even with Callbacks.Nick Sutterer2010-12-292-1/+22
|/
* Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2010-12-2921-3460/+316
|\
| * Fix typo in ActionPack changelog.Cheah Chu Yeow2010-12-291-1/+1
| |
| * Remove link to outdated Github tag comparison in ActionPack changelog.Cheah Chu Yeow2010-12-291-2/+0
| |
| * Routing guide: mention that routes are matched from the top down in a note.Ryan Bigg2010-12-291-0/+3
| |
| * fixed incorrect spacing from 98368546719cf09b3bc2Vijay Dev2010-12-291-1/+1
| |
| * fixed examples & minor typosVijay Dev2010-12-291-7/+7
| |
| * Added information about invoking migrations in non-default environments to ↵Karel Minarik2010-12-281-1/+1
| | | | | | | | | | | | NOTE box in the "Getting Started" guide Reason: When the guide already mentions "default environment", I think it is more then appropriate to tell the whole story.
| * Adding information and link to guide on customizing generators into "Getting ↵Karel Minarik2010-12-281-1/+1
| | | | | | | | Started" guide.
| * Fixed incorrect instructions for calling the `rails` command explicitely in ↵Karel Minarik2010-12-281-1/+1
| | | | | | | | the "Getting Started" guide
| * Added TIP box with information about the `--database` switch for the ↵Karel Minarik2010-12-281-0/+2
| | | | | | | | application generator in the "Getting Started" guide
| * Fixed incorrect command for displaying options for new application Generator ↵Karel Minarik2010-12-281-1/+1
| | | | | | | | in Getting Started guide
| * There's a couple -> There are a coupleRyan Bigg2010-12-281-1/+1
| |
| * Init guide: begin down the rabbit warren that is active_record/railtieRyan Bigg2010-12-281-0/+77
| |
| * Init: finish coverage of railties/lib/rails.rbRyan Bigg2010-12-281-0/+7
| |
| * init guide: Cover the action_dispatch/railtie require from rails.rbRyan Bigg2010-12-281-0/+112
| |
| * Remove old initialization guide text. Too much has changed for all of this ↵Ryan Bigg2010-12-281-3549/+0
| | | | | | | | to be useful.
| * init guide: cover active_support/railtie.rbRyan Bigg2010-12-281-0/+12
| |
| * Init guide: Segue between rails/version and active_support/railtie requiresRyan Bigg2010-12-281-0/+2
| |
| * Cover the inherited method from Rails::Railtie being used when I18n::Railtie ↵Ryan Bigg2010-12-281-1/+33
| | | | | | | | is loaded.
| * Init guide: finish covering the process of the i18n_railtie.rb file.Ryan Bigg2010-12-281-0/+20
| |
| * init guide: active_support/railtie does not require itself, actually ↵Ryan Bigg2010-12-281-1/+1
| | | | | | | | requires i18n_railtie