aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* 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
| * Init guide: finish covering initializers for i18n_railtie, moving on to ↵Ryan Bigg2010-12-281-0/+41
| | | | | | | | covering after_initialize
| * init guide: active_support/inflector/methods is loaded by ↵Ryan Bigg2010-12-281-5/+13
| | | | | | | | active_support/autoload first.
| * Init guide: cover Railtie::Configuration and begin to cover the Initializer ↵Ryan Bigg2010-12-271-4/+73
| | | | | | | | class and friends.
| * Init guide: Cover the config variable set up which is referenced in i18n_railtieRyan Bigg2010-12-271-0/+14
| |
| * fix spacingVijay Dev2010-12-261-1/+1
| |
| * changed template gist to reflect Rails 3 and documented the add_source ↵Vijay Dev2010-12-261-1/+11
| | | | | | | | method to source gems from different locations
| * use new routes in templatesVijay Dev2010-12-261-3/+3
| |
| * fix formattingVijay Dev2010-12-261-1/+1
| |
| * use all and first instead of find(:all) and find(:first)Vijay Dev2010-12-255-15/+15
| |