| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| |
| |
| | |
Conflicts:
activerecord/lib/active_record.rb
|
| |\
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Conflicts:
activemodel/lib/active_model/core.rb
activemodel/test/cases/state_machine/event_test.rb
activemodel/test/cases/state_machine/state_transition_test.rb
activerecord/lib/active_record/validations.rb
activerecord/test/cases/validations/i18n_validation_test.rb
activeresource/lib/active_resource.rb
activeresource/test/abstract_unit.rb
|
| | |
| | |
| | |
| | | |
"included" block DSL into separate modules. But, unify both approaches under AS::Concern.
|
| |\ \
| | | |
| | | |
| | | |
| | | | |
Conflicts:
activeresource/lib/active_resource/validations.rb
|
| | | | |
|
|\ \ \ \
| | |_|/
| |/| | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
[#2686 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
|\| | | |
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
|\| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Conflicts:
activerecord/lib/active_record.rb
Updated:
Arel submodule
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
|\| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Conflicts:
activerecord/lib/active_record/base.rb
activerecord/lib/active_record/migration.rb
activerecord/test/cases/helper.rb
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
| | | | |
|
|\| | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
[#2594 state:open]
This reverts commit 99c103be1165da9c8299bc0977188ecf167e06a5.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
conditions like {:table_name => {:column => 'value'}}
Signed-off-by: Michael Koziarski <michael@koziarski.com>
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Michael Koziarski <michael@koziarski.com>
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Michael Koziarski <michael@koziarski.com>
|
|\| | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
You can now add an :inverse_of option to has_one, has_many and belongs_to associations. This is best described with an example:
class Man < ActiveRecord::Base
has_one :face, :inverse_of => :man
end
class Face < ActiveRecord::Base
belongs_to :man, :inverse_of => :face
end
m = Man.first
f = m.face
Without :inverse_of m and f.man would be different instances of the same object (f.man being pulled from the database again). With these new :inverse_of options m and f.man are the same in memory instance.
Currently :inverse_of supports has_one and has_many (but not the :through variants) associations. It also supplies inverse support for belongs_to associations where the inverse is a has_one and it's not a polymorphic.
Signed-off-by: Murray Steele <muz@h-lame.com>
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
|\| | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
[#2594 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
| | | |
| | | |
| | | |
| | | | |
Implemented other methods in AR::Base with Arel support.
|
|/ / / |
|
| |/
|/|
| |
| |
| |
| | |
[#2550 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
| | |
|
|/
|
|
| |
have hash conditions on the same table
|
|
|
|
|
| |
Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com>
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
|
|
|
|
|
| |
associations are empty [#1696 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
|
|
|
| |
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
|
|
|
| |
AssociationCollection#find_in_batches
|
|
|
|
| |
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
|
|
|
| |
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
|
|
|
|
| |
[#1617 state:resolved]
|
|
|
|
|
|
| |
state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
|
|
|
|
|
| |
works [#1678 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
|
|
|
|
|
| |
option. [#1305 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
|
|
|
|
|
| |
association_foreign_key is missing. [#1252 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
|
|
|
| |
[#1930 status:committed]
|
| |
|
| |
|
|
|
|
|
| |
This avoids repeatedly calling SHOW COLUMNS when the association is queried
[#1738 state:committed]
|
|
|
|
|
|
|
|
| |
object [#1079 state:resolved]
If foreign key constraints are in place then deleteing the associated object first will cause a foreign key violation
Signed-off-by: Frederick Cheung <frederick.cheung@gmail.com>
|
|
|
|
|
|
| |
state:resolved]
Signed-off-by: Frederick Cheung <frederick.cheung@gmail.com>
|
| |
|
| |
|