Commit Graph

20205 Commits

Author SHA1 Message Date
Ryan Bigg
bb99c944d3 There's a couple -> There are a couple 2010-12-28 17:32:41 +10:00
Ryan Bigg
777a1f125d Init guide: begin down the rabbit warren that is active_record/railtie 2010-12-28 16:01:16 +10:00
Ryan Bigg
591c011238 Init: finish coverage of railties/lib/rails.rb 2010-12-28 15:10:13 +10:00
Ryan Bigg
8447754343 init guide: Cover the action_dispatch/railtie require from rails.rb 2010-12-28 15:06:26 +10:00
Ryan Bigg
02bb7e9b98 Remove old initialization guide text. Too much has changed for all of this to be useful. 2010-12-28 14:22:42 +10:00
Ryan Bigg
5196333d6c init guide: cover active_support/railtie.rb 2010-12-28 14:19:49 +10:00
Ryan Bigg
61e6a9f9d4 Init guide: Segue between rails/version and active_support/railtie requires 2010-12-28 14:19:05 +10:00
Ryan Bigg
0dd5433b98 Cover the inherited method from Rails::Railtie being used when I18n::Railtie is loaded. 2010-12-28 14:13:43 +10:00
Ryan Bigg
6777b7a886 Init guide: finish covering the process of the i18n_railtie.rb file. 2010-12-28 14:04:19 +10:00
Ryan Bigg
7b7537317c init guide: active_support/railtie does not require itself, actually requires i18n_railtie 2010-12-28 14:04:02 +10:00
Ryan Bigg
2f57353023 Init guide: finish covering initializers for i18n_railtie, moving on to covering after_initialize 2010-12-28 13:23:50 +10:00
Ryan Bigg
01febdadea init guide: active_support/inflector/methods is loaded by active_support/autoload first. 2010-12-28 13:22:28 +10:00
Ryan Bigg
62dd85cc83 Init guide: cover Railtie::Configuration and begin to cover the Initializer class and friends. 2010-12-27 19:14:44 +10:00
Ryan Bigg
a78e5bcfe4 Init guide: Cover the config variable set up which is referenced in i18n_railtie 2010-12-27 13:02:51 +10:00
Vijay Dev
50a2edbce6 fix spacing 2010-12-26 23:00:03 +05:30
Vijay Dev
e856318497 changed template gist to reflect Rails 3 and documented the add_source method to source gems from different locations 2010-12-26 22:57:45 +05:30
Vijay Dev
603e0f155d use new routes in templates 2010-12-26 22:10:56 +05:30
Vijay Dev
9ed385fe17 fix formatting 2010-12-26 00:09:08 +05:30
Vijay Dev
2801efbc3b use all and first instead of find(:all) and find(:first) 2010-12-25 23:59:57 +05:30
Vijay Dev
c6b9e47d5c use new routes 2010-12-25 23:27:15 +05:30
Vijay Dev
8618ef7537 highlighted find(array of keys) behaviour when one or more record is not found 2010-12-25 22:07:31 +05:30
Vijay Dev
b30293f2f6 minor edit 2010-12-25 22:04:05 +05:30
Vijay Dev
fdfa7dc648 fixed comment - same as 592f600 2010-12-25 01:52:28 +05:30
Vijay Dev
c6adc64e00 Merge branch 'master' of github.com:lifo/docrails 2010-12-25 01:31:00 +05:30
Vijay Dev
5cefa00d91 removed dup link to 'getting started' 2010-12-25 01:30:51 +05:30
Akira Matsuda
4e50c6c08a .erb => .html.erb 2010-12-25 04:58:11 +09:00
Vijay Dev
866647fdb1 Merge branch 'master' of github.com:lifo/docrails 2010-12-25 01:21:55 +05:30
Vijay Dev
592f6004e1 fixed comment in w3c_validator 2010-12-25 01:19:33 +05:30
Akira Matsuda
0a1f5f7511 for ... in => each ... do 2010-12-25 04:46:41 +09:00
Vijay Dev
f17e1b2f7f clean up plugin references 2010-12-25 01:04:10 +05:30
Vijay Dev
caca58e4da fixed typos and cut down the spaces 2010-12-25 00:56:39 +05:30
Vijay Dev
517b37146a minor edits 2010-12-25 00:38:03 +05:30
Moiz Raja
e38cacb8ee correct links to rack articles 2010-12-23 22:51:12 -08:00
Xavier Noria
8cdb758081 Merge branch 'master' of github.com:rails/rails 2010-12-24 01:55:35 +01:00
Xavier Noria
3822673151 Merge branch 'master' of git://github.com/lifo/docrails 2010-12-24 01:55:12 +01:00
Ryan Bigg
d1e95e12b4 Revert "Query guide: arel_table, eq and eq_any" along with other commits that added documentation involving the arel_table method
This reverts commit 578f9711fd.

Conflicts:

	railties/guides/source/active_record_querying.textile
2010-12-24 10:47:38 +10:00
oleg dashevskii
6974c595fd Verify that there is no unwanted implicit readonly set on Model.has_many_through.find(id) [#5442 state:resolved] 2010-12-23 15:19:18 -08:00
Jon Leighton
fb3a8c51b4 Raise an error for associations which try to go :through a polymorphic association [#6212 state:resolved] 2010-12-23 15:19:18 -08:00
Jon Leighton
1c07b84df9 If a has_many goes :through a belongs_to, and the foreign key of the belongs_to changes, then the has_many should be considered stale. 2010-12-23 15:19:18 -08:00
Jon Leighton
2d9626fc74 Improved strategy for updating a belongs_to association when the foreign key changes. Rather than resetting each affected association when the foreign key changes, we should lazily check for 'staleness' (where fk does not match target id) when the association is accessed. 2010-12-23 15:19:18 -08:00
Jon Leighton
3f17ed407c Test to verify that #2189 (count with has_many :through and a named_scope) is fixed 2010-12-23 15:19:18 -08:00
Jon Leighton
1619c2435b Revert "Optimize <association>_ids for hm:t with belongs_to source". The optimisation has too many edge cases, such as when the reflection, source reflection, or through reflection has conditions, orders, etc. [#6153 state:resolved]
This reverts commit 373b053dc8.

Conflicts:

	activerecord/lib/active_record/associations.rb
2010-12-23 15:19:18 -08:00
Jon Leighton
4e13625818 Test demonstrating problem with foo.association_ids where it's a has_many :through with :conditions, with a belongs_to as the source reflection 2010-12-23 15:19:18 -08:00
Jon Leighton
ff7bde62c8 When a has_many association is not :uniq, appending the same record multiple times should append it to the @target multiple times [#5964 state:resolved] 2010-12-23 15:19:17 -08:00
Michał Łomnicki
030480ac1f Fix behaviour of foo.has_many_through_association.select('custom select') [#6089 state:resolved] 2010-12-23 15:19:17 -08:00
Szymon Nowak
85683f2a79 Fix creation of has_many through records with custom primary_key option on belongs_to [#2990 state:resolved] 2010-12-23 15:19:17 -08:00
Will Bryant
b79823832e Verify that has_one :through preload respects the :conditions [#2976 state:resolved] 2010-12-23 15:19:17 -08:00
Jon Leighton
c6db37e69b Don't allow a has_one association to go :through a collection association [#2976 state:resolved] 2010-12-23 15:19:17 -08:00
Ryan Bigg
e4314e7d3f Query guide: visists => visits 2010-12-24 07:23:12 +10:00
Vijay Dev
06e2f7cd17 minor convention edit 2010-12-24 00:34:07 +05:30