Ben Orenstein
cff0aebbc4
Add a forgotten word.
2011-02-19 13:04:22 -05:00
Ben Orenstein
262dd965df
Improve clarity of example. Make it follow guidelines for output display.
2011-02-19 12:57:06 -05:00
Ben Orenstein
b3e5e25829
Add a clearer example for with_options (lifted from the Active Support guide).
2011-02-19 12:15:51 -05:00
Jimmy Cuadra
8af066b166
improve language and examples in Railtie docs
2011-02-18 22:20:04 -08:00
Peer Allan
8d96b89110
Clarification of ActiveRecord ActiveModel validation documentation
2011-02-18 20:51:56 -06:00
Xavier Noria
f41bf6938f
merges docrails
2011-02-18 23:22:15 +01:00
Xavier Noria
220cb107b6
removes indent from guides example
2011-02-18 23:13:29 +01:00
Xavier Noria
7c52da44ed
Revert "Created a new Troubleshooting section in the migrations guide."
...
Mismatches between migrations and constants have nothing to do with
pluralization rules or model names. The mismatch happens between
the camelization of the filename minus timestamp, and the name of
the migration class itself.
This reverts commit 1c21f75f1b .
2011-02-18 23:03:54 +01:00
Xavier Noria
2acb5e348d
removes unrealistic example (authentication plus gender?), that it is not needed anyway
2011-02-18 22:54:02 +01:00
Frederick Cheung
fbfa30a1ee
Change validates inclusion to use cover? for Ranges in ruby 1.9 [ #6453 state:committed]
...
Signed-off-by: Xavier Noria <fxn@hashref.com >
2011-02-18 21:32:28 +01:00
Nicholas Rowe
ad3e4e3af6
Clarify Example in ActiveRecord base
2011-02-18 14:43:53 -05:00
Emilio Tagua
00418ac96b
Merge remote branch 'rails/master' into identity_map
2011-02-18 16:22:50 -03:00
Emilio Tagua
3927827dbe
Don't use skip, just don't run anything, we don't have skip in Ruby 1.8
2011-02-18 16:20:15 -03:00
Emilio Tagua
3e5efb3708
Remove nbproject form gitignore. This shouldn't be here in the first place.
2011-02-18 16:07:58 -03:00
Emilio Tagua
d9eb007edf
WeakHash is not used, remove it.
2011-02-18 16:05:24 -03:00
Emilio Tagua
8052623a3d
No need to have reinit_with inside an InstanceMethods module.
2011-02-18 16:04:47 -03:00
Emilio Tagua
49f3525f19
Initialize @target instead asking if it is defined.
2011-02-18 15:55:55 -03:00
Jon Leighton
6975a41adf
Remove test which was broken on 1.8. This test is now irrelevant since singular associations no longer return a proxy object.
2011-02-18 18:50:35 +00:00
Aaron Patterson
2e748feb80
just use the list of column names to generate attribute methods
2011-02-18 10:47:19 -08:00
Emilio Tagua
eb23b2247d
Should use "=" instead "replace" after this commit: 1644663ba7
2011-02-18 15:44:23 -03:00
Emilio Tagua
d21a454327
No need to test agaisnt target.
2011-02-18 15:40:48 -03:00
Emilio Tagua
356086944d
Reindent and remove wrong line left in merge by mistake.
2011-02-18 15:40:06 -03:00
Emilio Tagua
b8c2feb97e
Use to_a instead :load in test, since :load changed.
2011-02-18 15:38:17 -03:00
Emilio Tagua
15a03ca9b0
No need to test against target anymore.
2011-02-18 15:38:00 -03:00
Emilio Tagua
0b702ba3de
Merge remote branch 'rails/master' into identity_map
...
Conflicts:
activerecord/lib/active_record/associations/association.rb
activerecord/lib/active_record/fixtures.rb
2011-02-18 15:29:33 -03:00
Nicholas Rowe
7d9a80be93
Remove awkward phrasing from Ajax on Rails guide
2011-02-17 20:49:25 -05:00
Nicholas Rowe
9a9d895481
Fix Typos: remove several occurences of the the
2011-02-17 20:46:52 -05:00
Nicholas Rowe
a906deabc6
fix type: remove extra period
2011-02-17 20:34:22 -05:00
Kedar Mhaswade
1c21f75f1b
Created a new Troubleshooting section in the migrations guide.
...
Added a bullet point there showing how the Uninitialized Constant
(missing migration class) error looks like.
2011-02-17 16:27:01 -08:00
Jon Leighton
1644663ba7
Split AssociationProxy into an Association class (and subclasses) which manages the association, and a CollectionProxy class which is *only* a proxy. Singular associations no longer have a proxy. See CHANGELOG for more.
2011-02-18 00:00:13 +00:00
Jon Leighton
1d9f26ed47
Add :nodoc: to ThroughAssociation and HasOneAssociation
2011-02-18 00:00:13 +00:00
Jon Leighton
91fd651056
Allow building and then later saving has_many :through records, such that the join record is automatically saved too. This requires the :inverse_of option to be set on the source association in the join model. See the CHANGELOG for details. [ #4329 state:resolved]
2011-02-18 00:00:13 +00:00
Jon Leighton
f0b9805029
Ensure that association_ids uses the correct attribute where the association is a has_many :through with a :primary_key option on the source reflection. [ #6376 state:resolved]
2011-02-18 00:00:13 +00:00
genlinux
23a5be74ce
commas to set off expressions that interrupt sentence flow
2011-02-17 22:40:58 +05:30
Ben Orenstein
b131cfba05
Remove unused line in test setup.
...
[#6442 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2011-02-17 14:38:51 -02:00
Brian Durand
017012b43a
Add description of transaction callbacks to ActiveRecord callbacks guide.
2011-02-17 10:18:56 -06:00
Brian Durand
fead0fc448
update caching guide with the changes to ActiveSupport::Cache from the 3.0.0 release.
2011-02-17 10:14:22 -06:00
Vijay Dev
465dd379e4
fix typo
2011-02-17 17:19:51 +05:30
Vijay Dev
ed630dfc72
fix typo
2011-02-17 16:59:03 +05:30
Aaron Patterson
9c023cc4d2
explicitly allowing lolqueries
2011-02-16 15:11:48 -08:00
Jimmy Cuadra
bd7d8665a0
add note about observer config for rails apps
...
ActiveModel::Observer and ActiveRecord::Observer have similar
documentation, but a Rails user looking at the ActiveModel version
might not realize that a change to config/application.rb is
required to activate the observer. This change adds a note to
that effect, pointing to the AR version from the AM version.
2011-02-16 14:15:48 -08:00
Aaron Patterson
ceb2f0f216
use the arel table rather than generating strings
2011-02-16 11:46:55 -08:00
Aaron Patterson
1dea7b5a61
no need for Array.wrap
2011-02-16 11:22:30 -08:00
Aaron Patterson
2e2e58a6a3
fixing whitespace problems
2011-02-16 11:08:01 -08:00
Steven Fenigstein
9b188c5bfe
removed an unnecessary second query when passing an ActiveRecord::Relation to a where clause. And added ability to use subselects in where clauses.
2011-02-16 09:54:09 -08:00
Timothy N. Tsvetkov
c6fac7b449
Fixed issue #6363 , avoid to pluralized already pluralized names and singularize a single in generators, for example stadia is a valid plural for stadium. But calling pluralize for stadia will return stadias which sematically is not corrent in this case
...
[#6363 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2011-02-16 15:09:06 -02:00
Dan Pickett
1754bd9b20
handle double pluralization for irregular plurals
...
[#6363 ]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2011-02-16 15:08:25 -02:00
Ben Orenstein
2eed9286ce
Remove unused code.
...
[#6437 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2011-02-16 13:20:04 -02:00
Aaron Patterson
8276a24020
fixture methods can be overridden and super() is useful
2011-02-15 15:52:27 -08:00
Aaron Patterson
8c4c07e4cb
fixing variable names to reflect reality
2011-02-15 15:35:10 -08:00