Aaron Patterson
|
d780d1f508
|
ordering can change depending on ruby version, so parse the JSON and verify data structure equality
|
2011-01-17 16:06:55 -08:00 |
|
Aaron Patterson
|
6a8f7f0e04
|
minitest added @__io__, so we should ignore it too
|
2011-01-17 14:53:44 -08:00 |
|
Aaron Patterson
|
1333020448
|
fixing space errors
|
2011-01-17 14:45:24 -08:00 |
|
Aaron Patterson
|
990e6a1b3a
|
fixing wrong test
|
2011-01-17 14:43:29 -08:00 |
|
Aaron Patterson
|
9702159373
|
removing more unused variables
|
2011-01-17 14:33:34 -08:00 |
|
Aaron Patterson
|
fdfabc99e8
|
fixing unused variable warnings
|
2011-01-17 14:22:17 -08:00 |
|
Jon Leighton
|
7a3f05f43d
|
Add CHANGELOG entry for the addition of create_association! methods on has_one and belongs_to
|
2011-01-16 13:43:54 -08:00 |
|
Jon Leighton
|
d1521719c5
|
Removed support for accessing attributes on a has_and_belongs_to_many join table. This has been documented as deprecated behaviour since April 2006. Please use has_many :through instead. A deprecation warning will be added to the 3-0-stable branch for the 3.0.4 release.
|
2011-01-16 13:43:54 -08:00 |
|
Jon Leighton
|
c4458b3602
|
Rename some variables
|
2011-01-16 13:43:54 -08:00 |
|
Jon Leighton
|
8aedd722e1
|
Use self.target= in HasOneThroughAssociation too
|
2011-01-16 13:43:54 -08:00 |
|
Jon Leighton
|
b7594a0756
|
find_target can also go into SingularAssociation
|
2011-01-16 13:43:53 -08:00 |
|
Jon Leighton
|
f1a15c2197
|
Abstract a bit more into SingularAssociation
|
2011-01-16 13:43:53 -08:00 |
|
Jon Leighton
|
115eedbb41
|
Use self.target= rather than @target= as the former automatically sets loaded
|
2011-01-16 13:43:53 -08:00 |
|
Jon Leighton
|
ef79b91784
|
Abstract common code from BelongsToAssociation and HasOneAssociation into SingularAssociation
|
2011-01-16 13:43:53 -08:00 |
|
Jon Leighton
|
bf24fe810c
|
belongs_to records should be initialized within the association scope
|
2011-01-16 13:43:53 -08:00 |
|
Jon Leighton
|
3ef693724c
|
Document the new create_association! method on one-to-one associations
|
2011-01-16 13:43:53 -08:00 |
|
Jon Leighton
|
52c47556b7
|
Add create_association! for belongs_to
|
2011-01-16 13:43:53 -08:00 |
|
Aaron Patterson
|
8f88a28416
|
change sqlite3-ruby => sqlite3 in the generators
|
2011-01-16 13:29:08 -08:00 |
|
Aaron Patterson
|
421e06f090
|
updating gem dependency for sqlite3
|
2011-01-16 12:55:28 -08:00 |
|
Xavier Noria
|
15e71347f6
|
updates AR's CHANGELOG with changes in 9e64dfa and ad343d7
|
2011-01-16 18:55:35 +01:00 |
|
Santiago Pastorino
|
bbcdc864a6
|
README.rdoc is a template
|
2011-01-15 04:13:43 -02:00 |
|
Alexey Nayden
|
a9163b547c
|
Complex struct encoding fix
[#6077 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
|
2011-01-15 00:06:26 -02:00 |
|
Alexey Nayden
|
d2c17dbd11
|
Complex struct encoding test
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
|
2011-01-15 00:06:17 -02:00 |
|
Santiago Pastorino
|
d75ff73a72
|
plugin new generator should generate config/routes.rb file for full engines
|
2011-01-14 23:34:10 -02:00 |
|
Aaron Patterson
|
0aef847927
|
push !loaded? conditional up
|
2011-01-14 17:08:27 -08:00 |
|
Aaron Patterson
|
b8ed2d5ddf
|
return early in case the left or right side lists are empty
|
2011-01-14 17:03:15 -08:00 |
|
Aaron Patterson
|
75e29e871e
|
only find_target can raise the exception, so isolate the rescue around that call
|
2011-01-14 16:57:14 -08:00 |
|
Aaron Patterson
|
f548054700
|
we always have a target, so stop checking
|
2011-01-14 16:54:02 -08:00 |
|
Aaron Patterson
|
f5d2cb9cac
|
we should use [] instead of Array.new
|
2011-01-14 16:50:26 -08:00 |
|
Aaron Patterson
|
17687e4f96
|
@target is always a list, so stop doing is_a? checks
|
2011-01-14 16:47:31 -08:00 |
|
Aaron Patterson
|
2afd6c75f1
|
move complex logic to it's own method
|
2011-01-14 16:46:02 -08:00 |
|
Aaron Patterson
|
a0a69b045a
|
loaded? will not raise an AR::RecordNotFound exception, so move the rescue inside the conditional
|
2011-01-14 15:58:59 -08:00 |
|
Aaron Patterson
|
c326969745
|
reduce funcalls by using falsey objects
|
2011-01-14 14:45:46 -08:00 |
|
Aaron Patterson
|
dc11a77ab7
|
write the delegate method directly to avoid delegate callstack overhead
|
2011-01-14 14:40:11 -08:00 |
|
Aaron Patterson
|
ef4ffed660
|
reduce some lasigns
|
2011-01-14 14:30:47 -08:00 |
|
Aaron Patterson
|
2947197421
|
use rake to create test databases for us
|
2011-01-14 14:07:16 -08:00 |
|
Aaron Patterson
|
f30a3106f3
|
transactional fixtures must be set to false for this test
|
2011-01-14 13:45:30 -08:00 |
|
Aaron Patterson
|
92499b3c7e
|
Arel::Table.engine will be deprecated, so stop using it
|
2011-01-14 13:11:24 -08:00 |
|
Aaron Patterson
|
1e9685f159
|
preheat the table cache in arel
|
2011-01-14 11:16:31 -08:00 |
|
Santiago Pastorino
|
3755ae04a1
|
Add missing require
|
2011-01-14 17:11:15 -02:00 |
|
Aaron Patterson
|
7bf7ab5c68
|
use rack-test from git
|
2011-01-14 10:14:10 -08:00 |
|
Santiago Pastorino
|
9a57a2279e
|
sorry, the CI cannot lie to us anymore (Part II)
|
2011-01-13 10:55:41 -02:00 |
|
Aaron Patterson
|
3165dca28c
|
include_in_memory? should check against @target list in case of new records. [#6257 state:resolved]
|
2011-01-12 18:07:53 -08:00 |
|
Aaron Patterson
|
f2beb56c8b
|
fixing whitespace errors
|
2011-01-12 18:07:53 -08:00 |
|
Santiago Pastorino
|
1de47a0d56
|
button_tag should escape it content
|
2011-01-12 22:05:52 -02:00 |
|
Santiago Pastorino
|
20897a6c2c
|
Allow generators nested in more than one level
|
2011-01-12 21:42:56 -02:00 |
|
Aaron Patterson
|
c76c699f30
|
turn off deprecation silencing
|
2011-01-12 15:28:57 -08:00 |
|
Aaron Patterson
|
e1beb7d287
|
use array maths rather than *args
|
2011-01-12 15:15:45 -08:00 |
|
Aaron Patterson
|
8f9944d5bc
|
just use return value of load_target
|
2011-01-12 14:29:17 -08:00 |
|
Aaron Patterson
|
e9980f17fd
|
just call methods on return value of load_target
|
2011-01-12 14:27:08 -08:00 |
|