Tarmo Tänav
|
74c3c701f7
|
Don't set "NULL" as a constraint on nullable columns [#398 state:resolved]
This is already the default and adding it breaks SQL standards compatibility.
|
2008-08-23 19:51:09 +03:00 |
|
Josh Susser
|
e48e77e022
|
coerce blank strings to nil values for boolean and integer fields
[#860 state:resolved]
|
2008-08-22 16:26:40 -07:00 |
|
Tarmo Tänav
|
707ee0e269
|
Made migrations transactional for PostgreSQL [#834 state:resolved]
Patch originally from http://dev.rubyonrails.org/ticket/5470
|
2008-08-22 14:46:25 -07:00 |
|
Jeremy Kemper
|
9dac5547ad
|
Merge branch 'master' into i18n
|
2008-08-22 13:01:53 -07:00 |
|
Jeremy Kemper
|
a6e05b18d6
|
Merge commit 'sven/i18n' into i18n
|
2008-08-22 12:44:14 -07:00 |
|
Patrick Reagan
|
683ff235e6
|
Ensure t.timestamps respects options. [#828 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2008-08-22 12:48:00 +01:00 |
|
Tarmo Tänav
|
52ac9d0444
|
Fixed ordering in test_find_in_association_with_custom_finder_sql_and_multiple_interpolations
|
2008-08-22 10:39:45 +03:00 |
|
Jeremy Kemper
|
a5eb297424
|
Revert "coerce blank strings to nil values for boolean and integer fields"
This reverts commit aee14630d4.
[#860 state:incomplete]
|
2008-08-21 21:34:37 -07:00 |
|
S. Brent Faulkner
|
bbedb6a624
|
remember created records and select a random one instead of relying on sequential id values starting at 1
Signed-off-by: Michael Koziarski <michael@koziarski.com>
|
2008-08-21 19:33:26 +02:00 |
|
Josh Susser
|
aee14630d4
|
coerce blank strings to nil values for boolean and integer fields
Signed-off-by: Michael Koziarski <michael@koziarski.com>
|
2008-08-21 19:33:25 +02:00 |
|
Sven Fuchs
|
aad429a46e
|
Merge branch 'master' into i18n
|
2008-08-21 19:04:39 +02:00 |
|
Iain Hecker
|
cf6840773b
|
Custom error messages scope improved
|
2008-08-21 18:40:44 +02:00 |
|
Peter Wagenet
|
8622787f87
|
Don't interpret decimals as table names in ActiveRecord::Associations::ClassMethods#references_eager_loaded_tables? [#532 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2008-08-21 17:21:17 +01:00 |
|
Tom Lea
|
3724dafe71
|
Fix incorrect signature for NamedScope#respond_to? [#852 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2008-08-21 16:39:27 +01:00 |
|
Philip Hallstrom
|
49c0e1e594
|
Fix generated WHERE IN query for named scopes. [#583 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2008-08-21 16:11:28 +01:00 |
|
Xavier Noria
|
a970f916fb
|
Fix has_many#count_records. [#865 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2008-08-21 15:48:04 +01:00 |
|
Jakub Kuźma
|
ea40f71431
|
Fix that has_one natural assignment to already associated record. [#854 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2008-08-21 15:21:21 +01:00 |
|
Ryan Bates
|
2415652660
|
Support find_all on named scopes. [#730 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2008-08-21 12:37:19 +01:00 |
|
Iain Hecker
|
febe2ea977
|
Locale file changed to yaml
|
2008-08-20 18:01:12 +02:00 |
|
Sven Fuchs
|
a6a62004c9
|
add human_name and value to ar validation #generate_message
|
2008-08-20 17:51:42 +02:00 |
|
Iain Hecker
|
e2b191681e
|
Added :value as interpolation variable available to error messages
|
2008-08-20 17:41:43 +02:00 |
|
Iain Hecker
|
c531248938
|
Introduced AR::Base.human_name to validations
|
2008-08-20 17:39:43 +02:00 |
|
Iain Hecker
|
ae8a35d8f6
|
Added Base.human_name method
|
2008-08-20 17:39:43 +02:00 |
|
Joshua Peek
|
c1a8690d58
|
Consistently use the framework's configured logger and avoid reverting to RAILS_DEFAULT_LOGGER unless necessary.
|
2008-08-18 23:36:13 -05:00 |
|
Tarmo Tänav
|
96607996ea
|
Test for eager loading of STI subclasses from htm associations
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2008-08-16 22:26:11 +01:00 |
|
Nathan Witmer
|
8cfdcdb35d
|
Updated has_and_belongs_to_many association to fix :finder_sql interpolation. [#848 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2008-08-16 22:23:48 +01:00 |
|
Tarmo Tänav
|
2b69a636c4
|
Fixed STI type condition for eager loading of associations
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2008-08-16 20:41:19 +01:00 |
|
Ryan Bates
|
8f4d3957a6
|
Don't raise exception when comparing ActiveRecord::Reflection. [#842 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2008-08-16 20:21:36 +01:00 |
|
Iain Hecker
|
ffeab4e0c1
|
Cleaned up ActiveRecord i18n scoping
|
2008-08-14 10:48:33 +02:00 |
|
Eloy Duran
|
1ee9e3fa5c
|
Fix ActiveRecord::NamedScope::Scope#respond_to? [#818 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2008-08-13 13:04:42 +01:00 |
|
Sven Fuchs
|
d0ee883e7c
|
fixing unit tests for active_record validations_i18n
|
2008-08-13 14:02:26 +02:00 |
|
Sven Fuchs
|
aae9f91659
|
fix validations_i18n tests for changed locale file format
|
2008-08-13 10:00:54 +02:00 |
|
Tarmo Tänav
|
a5aad2e81f
|
Fixed Time/Date object serialization
Time/Date objects used to be converted to_s instead of to_uaml
which made them unserializable.
|
2008-08-12 20:29:07 -07:00 |
|
Tom Lea
|
992fda16ed
|
Serialized attributes will now always be saved even with partial_updates turned on.
Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#788 state:committed]
|
2008-08-12 18:15:50 +02:00 |
|
Sven Fuchs
|
bdf783b5a8
|
update i18n usage for pluralization hashes (api change)
|
2008-08-10 21:29:02 +02:00 |
|
Ernie Miller
|
7f6e7ba1f7
|
Fixed AssociationCollection#<< resulting in unexpected values in @target when :uniq => true
Signed-off-by: Michael Koziarski <michael@koziarski.com>
|
2008-08-08 15:19:08 +02:00 |
|
Ryan Bates
|
1db7c9cf4a
|
fixing "test_any_should_not_load_results" so it doesn't depend on latest version of Mocha
Signed-off-by: Michael Koziarski <michael@koziarski.com>
|
2008-08-08 10:33:29 +02:00 |
|
Nik Wakelin
|
0809747845
|
Added MigrationProxy to defer loading of Migration classes until they are actually required by the migrator
Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#747 state:resolved]
|
2008-08-06 12:46:52 +02:00 |
|
Tarmo Tänav
|
82343859d5
|
Added missing fixtures for tests which fail to run independently if run after schema reset
Signed-off-by: Michael Koziarski <michael@koziarski.com>
|
2008-08-04 11:50:15 +02:00 |
|
Tarmo Tänav
|
656f0e7c6c
|
Fix file permissions
Signed-off-by: Joshua Peek <josh@joshpeek.com>
|
2008-07-31 16:36:23 -05:00 |
|
Tarmo Tänav
|
896a3b9ab8
|
Fixed test_joins_with_namespaced_model_should_use_correct_type for postgresql
Signed-off-by: Michael Koziarski <michael@koziarski.com>
|
2008-07-31 19:02:32 +02:00 |
|
miloops
|
fb5cc19707
|
Fix HasManyThroughAssociationsTest tests. [#733 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2008-07-31 17:01:22 +01:00 |
|
Pratik Naik
|
108db00aa9
|
Raise UnknownAttributeError when unknown attributes are supplied via mass assignment
|
2008-07-31 15:56:46 +01:00 |
|
George Ogata
|
e8fc894f66
|
Make observers define #after_find in the model only if needed.
[#676 state:resolved]
Signed-off-by: Michael Koziarski <michael@koziarski.com>
|
2008-07-26 16:26:08 +02:00 |
|
Jan De Poorter
|
93e10f9911
|
Ensure NamedScope#any? uses COUNT query wherever possible. [#680 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2008-07-23 12:02:17 +01:00 |
|
Daniel Guettler
|
c67713a2fe
|
Use klass.sti_name to make sure associations take store_full_sti_class into account. [#671 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2008-07-22 01:24:47 +01:00 |
|
Tom Ward
|
f205939348
|
Ensure checked value is a string when validating case-sensitive uniqueness [#361 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2008-07-19 16:14:39 +01:00 |
|
Joachim Garth
|
a1fcbd971d
|
Make sure association preloading works with full STI class name [#465 state:Resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2008-07-18 03:44:44 +01:00 |
|
Jeremy Kemper
|
1e0f94a77c
|
Introduce simple internationalization support
|
2008-07-17 14:56:12 -07:00 |
|
Sven Fuchs
|
931f366ffc
|
merge forward to current rails/master
|
2008-07-16 03:41:11 +02:00 |
|