Emilio Tagua
|
a60334fdc5
|
Remove useless conditionals/local var.
|
2009-08-19 19:36:06 -03:00 |
|
Emilio Tagua
|
54fcbb881d
|
Make sure join association methods are called once.
|
2009-08-19 17:45:13 -03:00 |
|
Emilio Tagua
|
b32474020c
|
Don't sanitize_sql where it doesn't make sense.
|
2009-08-19 16:29:26 -03:00 |
|
Emilio Tagua
|
ccf5f2c4a2
|
Remove old method and comment.
|
2009-08-19 16:17:16 -03:00 |
|
Emilio Tagua
|
3e1ef198e0
|
Remove useless InnerJoinDependency, inner joins are performed through
Arel::InnerJoin.
|
2009-08-19 16:08:54 -03:00 |
|
Emilio Tagua
|
2048556a14
|
Remove whitespace.
|
2009-08-19 11:09:12 -03:00 |
|
Emilio Tagua
|
c36cfa7568
|
Remove unused quoted_record_ids, now ARel does this using ARel::In.
|
2009-08-18 20:03:32 -03:00 |
|
Emilio Tagua
|
a09215ee96
|
has_many nullify associations keys using ARel.
|
2009-08-18 20:02:14 -03:00 |
|
Emilio Tagua
|
a7178773d2
|
Remove now unused quote_table_name, ARel does that quoting now.
|
2009-08-18 19:53:21 -03:00 |
|
Emilio Tagua
|
d5476b466f
|
habtm insertion with ARel integration.
|
2009-08-18 19:51:41 -03:00 |
|
Emilio Tagua
|
c1f833dff4
|
habtm delete method integrated with ARel.
|
2009-08-18 19:38:34 -03:00 |
|
Emilio Tagua
|
0abba2813b
|
Call to_sql method on ActiveRecord::Relation instance not it's relation
attribute.'
|
2009-08-18 19:38:03 -03:00 |
|
Emilio Tagua
|
74ed123e08
|
Override respond_to? in ActiveRecord::Relation to go with
method_missing.
|
2009-08-18 16:35:33 -03:00 |
|
Emilio Tagua
|
fefb4c78ac
|
Cache arel_table when possible, use class method arel_table instead
instance method.
|
2009-08-18 16:28:04 -03:00 |
|
Emilio Tagua
|
0d6997b6e3
|
Cache #arel_able when possible.
|
2009-08-18 14:49:11 -03:00 |
|
Emilio Tagua
|
60926db9e0
|
Inline initializer setup.
|
2009-08-18 14:22:38 -03:00 |
|
Emilio Tagua
|
66fbcc1de6
|
Use immutable relation objects to generate queries.
|
2009-08-18 14:10:03 -03:00 |
|
Emilio Tagua
|
ac03bc91db
|
Use explicit method definition instead of metaprogramming.
|
2009-08-18 08:27:37 -03:00 |
|
Emilio Tagua
|
fa8f5c2667
|
Relation#joins! should know what to join instead of delegating to
construct_join.
|
2009-08-18 08:18:24 -03:00 |
|
Emilio Tagua
|
79e951ca9b
|
Use finder options as relation method names to provide more familiar
naming. Use bang methods convention in methods that alter the
relation.
|
2009-08-18 07:50:11 -03:00 |
|
Emilio Tagua
|
c923409630
|
Clean up relation joins when finding records with included associations.
|
2009-08-17 20:17:40 -03:00 |
|
Emilio Tagua
|
4b339f44bd
|
Merge commit 'rails/master'
|
2009-08-17 19:46:32 -03:00 |
|
Pratik Naik
|
25e5b0c4a8
|
Remove support for SQLite 2.
If you're still using it, please install the plugin from git://github.com/rails/sqlite2_adapter.git
|
2009-08-17 14:54:34 +01:00 |
|
Emilio Tagua
|
770fca10fb
|
Remove group when building the relation, it will be added later if
options[:group] is given.
|
2009-08-16 17:27:45 -03:00 |
|
Jay Pignata
|
cb3e669b0d
|
Fix calculation tests on sqlite2 [#3053 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-08-15 19:14:11 -07:00 |
|
Emilio Tagua
|
796ec652ad
|
Don't use regular rinder on calculations since scoping order blows
PostreSQL.
|
2009-08-14 15:59:55 -03:00 |
|
Emilio Tagua
|
48c1e6d584
|
Merge commit 'rails/master'
|
2009-08-14 12:34:38 -03:00 |
|
Emilio Tagua
|
9ac01fad19
|
Use ARel's joins when building a query for finding records with included
associations.
|
2009-08-14 12:33:05 -03:00 |
|
Joshua Peek
|
c6bc8e6626
|
Break up concerns for choosing what attributes should be serialized and the actual serializer
|
2009-08-13 22:27:36 -05:00 |
|
Emilio Tagua
|
10af9fae4a
|
Merge commit 'rails/master'
|
2009-08-10 18:19:24 -03:00 |
|
Emilio Tagua
|
0e2fbd80e2
|
Merge commit 'rails/master'
Conflicts:
activerecord/lib/active_record/calculations.rb
activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
|
2009-08-10 18:07:33 -03:00 |
|
Pratik Naik
|
ad28e0037b
|
Remove unnecessary scoping for creating hm:t join record
|
2009-08-10 21:20:01 +01:00 |
|
Pratik Naik
|
50b83984f1
|
Remove unnecessary scoping and validation checks from hm:t#create
|
2009-08-10 21:06:49 +01:00 |
|
Pratik Naik
|
d9c4087a9e
|
Unify hm:t#create and create! implementation
|
2009-08-10 21:02:06 +01:00 |
|
Joshua Peek
|
f97dae5ebe
|
Extract common dirty tracking methods in AMo
|
2009-08-10 13:51:48 -05:00 |
|
Joshua Peek
|
391f978acd
|
AMo overrides alias_attribute and manages aliasing all known attribute method matchers
|
2009-08-10 11:58:44 -05:00 |
|
Emilio Tagua
|
eb3ae44cca
|
Merge commit 'rails/master'
Conflicts:
activerecord/lib/active_record/migration.rb
|
2009-08-10 10:40:11 -03:00 |
|
Tim Peters
|
7eaed4fefe
|
Use table prefix and suffix for schema_migrations index.
[#1543 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2009-08-09 22:56:37 -07:00 |
|
Jeff Dean
|
22f3398253
|
Introduce validates_with to encapsulate attribute validations in a class.
[#2630 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2009-08-09 22:47:56 -07:00 |
|
Leonardo Borges
|
0c391b46fb
|
PostgreSQL: XML datatype support
[#1874 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2009-08-09 22:24:54 -07:00 |
|
Jaime Bellmyer
|
9c1bac0b7f
|
raises an exception on habtm join table inserts if join table contains a primary key. Caches this check to save time on subsequent inserts.
[#2086 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2009-08-09 22:19:18 -07:00 |
|
Jaime Bellmyer
|
f0602214e0
|
raises exception (ActiveRecord::ConfigurationError with message) on habtm association creation if join table contains a primary key
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2009-08-09 22:17:39 -07:00 |
|
Morgan Schweers
|
d2d464e26e
|
Fix that creating a table whose primary key prefix type is :table_name generates an incorrectly pluralized primary key.
[#872 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2009-08-09 21:57:56 -07:00 |
|
Gabe da Silveira
|
7e3364ac46
|
Fix that counter_cache breaks with has_many :dependent => :nullify.
[#1196 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2009-08-09 21:18:16 -07:00 |
|
Jatinder Singh
|
5704ecffad
|
AR should respect default values for MySQL BINARY and VARBINARY columns.
[#1273 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2009-08-09 21:05:26 -07:00 |
|
railsbob
|
e06a0b03c8
|
has_many :through create should not raise validation errors
[#2934 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2009-08-09 18:44:45 -07:00 |
|
Tristan Dunn
|
a0f69722be
|
Allow ho:through#build when the owner is a new record [#1749 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-08-10 00:46:16 +01:00 |
|
Tristan Dunn
|
0472839d68
|
Prevent overwriting of table name in merging SQL conditions [#2949 state:resolved]
|
2009-08-10 00:41:36 +01:00 |
|
Gabe da Silveira
|
00d6c76660
|
Enable has_many :through for going through a has_one association on the join model [#2719 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-08-10 00:30:44 +01:00 |
|
Arthur Zapparoli
|
ce2422ceaf
|
Model#human_attribute_name now accept symbols [#3025 status:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
|
2009-08-09 23:55:54 +01:00 |
|