Jon Leighton
|
1d85a73ceb
|
Associations - where possible, call attributes methods rather than directly accessing the instance variables
|
2011-02-21 10:16:14 -08:00 |
|
Xavier Noria
|
f826e05835
|
Merge branch 'master' of git://github.com/lifo/docrails
|
2011-02-21 11:42:26 +01:00 |
|
Xavier Noria
|
b481574a33
|
copy-edits 8d96b89
|
2011-02-21 11:37:08 +01:00 |
|
Rodrigo Navarro
|
62fd334684
|
Adding new examples for update_all method
|
2011-02-20 22:22:52 -03:00 |
|
Rodrigo Navarro
|
4da0157aaf
|
Adding examples
|
2011-02-20 22:03:29 -03:00 |
|
Nicholas Rowe
|
2a75c190d4
|
Tpyo: fixing several cases of the the
|
2011-02-19 23:47:12 -05:00 |
|
Nicholas Rowe
|
89b3bc4807
|
Typo: fixing the the
|
2011-02-19 23:46:30 -05:00 |
|
Peer Allan
|
8d96b89110
|
Clarification of ActiveRecord ActiveModel validation documentation
|
2011-02-18 20:51:56 -06:00 |
|
Aaron Patterson
|
289cc15f1a
|
instance_methods includes public and protected, so reduce funcalls and object allocs
|
2011-02-18 17:32:08 -08:00 |
|
Aaron Patterson
|
8657826f41
|
oops, no need for puts!
|
2011-02-18 15:53:54 -08:00 |
|
Aaron Patterson
|
30679bc705
|
AR::AttributeMethods does not need to be included in an AR::Base class.
|
2011-02-18 15:51:39 -08:00 |
|
Xavier Noria
|
ce76cfc61f
|
fixes a merge conflict
|
2011-02-19 00:42:51 +01:00 |
|
Xavier Noria
|
f41bf6938f
|
merges docrails
|
2011-02-18 23:22:15 +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 |
|
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
|
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
|
9a9d895481
|
Fix Typos: remove several occurences of the the
|
2011-02-17 20:46:52 -05: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 |
|
Aaron Patterson
|
9c023cc4d2
|
explicitly allowing lolqueries
|
2011-02-16 15:11: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 |
|
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 |
|
Aaron Patterson
|
13e72db770
|
this is in the AR namespace, so AR must exist
|
2011-02-15 15:05:52 -08:00 |
|
Timothy N. Tsvetkov
|
09ccdc3737
|
Optimization for postgres adapter for add_column method. Set default and not null in one query
|
2011-02-15 10:52:14 -08:00 |
|
Aaron Patterson
|
f83218561e
|
fixing variable names, removing FixtureFile instances from test ivars
|
2011-02-15 10:48:01 -08:00 |
|
Aaron Patterson
|
f0b1173965
|
removing unused variable
|
2011-02-15 10:07:19 -08:00 |
|
Emilio Tagua
|
90a850aea4
|
Fix expected queries in relation tests.
|
2011-02-15 12:43:15 -03:00 |
|
Emilio Tagua
|
c13b7c4a0f
|
Don't shadow outer local variable.
|
2011-02-15 12:41:57 -03:00 |
|
Emilio Tagua
|
f1778eb44a
|
Run tests without IdentityMap when IM=false is given.
|
2011-02-15 12:40:41 -03:00 |
|
Emilio Tagua
|
ca75091fc7
|
Remove identity map from benchmark script.
|
2011-02-15 12:06:44 -03:00 |
|
Emilio Tagua
|
8ee0b44148
|
Merge remote branch 'rails/master' into identity_map
Conflicts:
activerecord/examples/performance.rb
activerecord/lib/active_record/association_preload.rb
activerecord/lib/active_record/associations.rb
activerecord/lib/active_record/associations/association_proxy.rb
activerecord/lib/active_record/autosave_association.rb
activerecord/lib/active_record/base.rb
activerecord/lib/active_record/nested_attributes.rb
activerecord/test/cases/relations_test.rb
|
2011-02-15 12:01:04 -03:00 |
|
Sergii Boiko
|
471327169d
|
fixed broken link to postgresql docs
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
|
2011-02-15 12:01:15 -02:00 |
|