Diego Carrion
b0da0dd834
added Range#count? for Ruby 1.8
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2011-02-19 23:24:30 -02:00
Ben Orenstein
6052929e88
Edit a few lines for readability.
2011-02-19 18:07:07 -05:00
Brandon Tilley
fe5c2c2d21
Add info about I18n::Backend::Chain to I18n guide
2011-02-19 14:49:42 -08:00
Vijay Dev
7e8b075f73
session is reset on token mismatch
2011-02-20 01:18:03 +05:30
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
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
Emilio Tagua
18439e28e0
We really don't care about IM middleware order, the important is that it gets included.
2011-02-18 14:57:29 -08: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 1c21f75f1b32ee8723c74a9bc7af70dfa02a509c.
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: 1644663ba7f678d178deab2bf1629dc05626f85b
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