Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Move/rename files to follow naming conventions | Alexey Muranov | 2012-10-07 | 3 | -1/+1 |
| | |||||
* | Deprecate "Fixtures" constant | Alexey Muranov | 2012-10-07 | 1 | -0/+8 |
| | |||||
* | Rename "Fixtures" class to "FixtureSet" | Alexey Muranov | 2012-10-07 | 11 | -58/+58 |
| | | | | Rename `ActiveRecord::Fixtures` class to `ActiveRecord::FixtureSet`. Instances of this class normally hold a collection of fixtures (records) loaded either from a single YAML file, or from a file and a folder with the same name. This change make the class name singular and makes the class easier to distinguish from the modules like `ActiveRecord::TestFixtures`, which operates on multiple fixture sets, or `DelegatingFixtures`, `::Fixtures`, etc., and from the class `ActiveRecord::Fixture`, which corresponds to a single fixture. | ||||
* | Remove unneeded require | Rafael Mendonça França | 2012-10-06 | 1 | -1/+0 |
| | |||||
* | Move multiparameter attributes related tests to its own file | Rafael Mendonça França | 2012-10-06 | 2 | -337/+351 |
| | |||||
* | PostgreSQL, quote table names when fetching the primary key. Closes #5920 | Yves Senn | 2012-10-05 | 3 | -1/+10 |
| | |||||
* | Update activerecord/lib/active_record/persistence.rb | Adam Haymond | 2012-10-04 | 1 | -2/+2 |
| | | | - Changed the comments documentation for the update_column(s) methods to add a little bit of clarity | ||||
* | Fix CHANGELOG entry [ci skip] | Rafael Mendonça França | 2012-10-04 | 1 | -4/+4 |
| | |||||
* | Count returns 0 without querying if parent is not saved | Francesco Rodriguez | 2012-10-03 | 5 | -0/+37 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Patches `CollectionAssociation#count` to return 0 without querying if the parent record is new. Consider the following code: class Account has_many :dossiers end class Dossier belongs_to :account end a = Account.new a.dossiers.build # before patch a.dossiers.count # SELECT COUNT(*) FROM "dossiers" WHERE "dossiers"."account_id" IS NULL # => 0 # after a.dosiers.count # fires without sql query # => 0 Fixes #1856. | ||||
* | Refactor | Santiago Pastorino | 2012-10-03 | 1 | -5/+4 |
| | |||||
* | fix warning: method redefined | kennyj | 2012-10-02 | 2 | -2/+2 |
| | |||||
* | Merge pull request #7822 from lulalala/reset-counter-cache-for-has-many-through | Rafael Mendonça França | 2012-10-02 | 5 | -4/+28 |
|\ | | | | | Fix reset_counters crashing on has_many :through associations. | ||||
| * | Fix reset_counters() crashing on has_many :through associations. | lulalala | 2012-10-02 | 5 | -4/+28 |
| | | | | | | | | | | The counter column name in the intermediate model need to be access via the through reflection. | ||||
* | | Merge pull request #7708 from bdurand/optimize_log_subscribers | Rafael Mendonça França | 2012-10-01 | 1 | -4/+6 |
|\ \ | |/ |/| | Optimize log subscribers to check if the log level is sufficient | ||||
| * | Optimize log subscribers to check if the log level is sufficient before ↵ | Brian Durand | 2012-09-30 | 1 | -4/+6 |
| | | | | | | | | performing an operations. | ||||
* | | small refactoring of build_relation in uniqueness | Angelo Capilleri | 2012-09-29 | 1 | -5/+3 |
| | | | | | | | | | | reflection init as 'if' stantment. column is always the same expression and depends from the changing of attributes | ||||
* | | Change query pattern case insensitive | Yasuo Honda | 2012-09-29 | 1 | -1/+1 |
| | | | | | | | | because Oracle adapter uses upper case attribute/column name. | ||||
* | | Fix syntax error with no US-ASCII char | Rafael Mendonça França | 2012-09-28 | 1 | -1/+1 |
| | | |||||
* | | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-09-28 | 17 | -186/+161 |
|\ \ | | | | | | | | | | | | | Conflicts: actionpack/lib/action_view/helpers/asset_tag_helper.rb | ||||
| * | | remove added indentation from the last commit [ci skip] | Francesco Rodriguez | 2012-09-22 | 1 | -1/+1 |
| | | | |||||
| * | | update AR::Validations documentation [ci skip] | Francesco Rodriguez | 2012-09-22 | 5 | -28/+28 |
| | | | |||||
| * | | nodoc AR::Railtie [ci skip] | Francesco Rodriguez | 2012-09-21 | 2 | -4/+4 |
| | | | |||||
| * | | update AR::Scoping documentation [ci skip] | Francesco Rodriguez | 2012-09-21 | 2 | -91/+77 |
| | | | |||||
| * | | add :nodoc: directive to AR::Fixtures::File [ci skip] | Francesco Rodriguez | 2012-09-21 | 1 | -1/+1 |
| | | | |||||
| * | | fix AR::Coders::YAMLColumn nodoc [ci skip] | Francesco Rodriguez | 2012-09-21 | 1 | -4/+2 |
| | | | |||||
| * | | update AR/attribute_methods documentation [ci skip] | Francesco Rodriguez | 2012-09-21 | 4 | -26/+36 |
| | | | |||||
| * | | Better docs for overriding inheretance column | Steve Klabnik | 2012-09-22 | 1 | -5/+2 |
| | | | |||||
| * | | fix AR::AttributeMethods::Dirty :nodoc: [ci skip] | Francesco Rodriguez | 2012-09-21 | 1 | -4/+4 |
| | | | |||||
| * | | fix AR::Associations::CollectionProxy#delete broken documentation [ci skip] | Francesco Rodriguez | 2012-09-21 | 1 | -23/+2 |
| | | | |||||
| * | | update AR::Associations::CollectionProxy#loaded? documentation [ci skip] | Francesco Rodriguez | 2012-09-21 | 1 | -1/+6 |
| | | | |||||
* | | | Add missing CHANGELOG entry removed by mistake at 7f3b475 [ci skip] | Rafael Mendonça França | 2012-09-28 | 1 | -11/+20 |
| | | | |||||
* | | | Add an explicit test for hot compatibility | Jon Leighton | 2012-09-28 | 1 | -0/+54 |
| | | | |||||
* | | | Support for partial inserts. | Jon Leighton | 2012-09-28 | 9 | -15/+75 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When inserting new records, only the fields which have been changed from the defaults will actually be included in the INSERT statement. The other fields will be populated by the database. This is more efficient, and also means that it will be safe to remove database columns without getting subsequent errors in running app processes (so long as the code in those processes doesn't contain any references to the removed column). | ||||
* | | | Add #update_columns entry to AR Changelog. | Sebastian Martinez | 2012-09-28 | 1 | -0/+11 |
| | | | |||||
* | | | Merge pull request #7394 from bobbyw/master | Rafael Mendonça França | 2012-09-28 | 1 | -2/+2 |
|\ \ \ | | | | | | | | | Use template0 option for creating activerecord test databases in build_database task with postgres | ||||
| * | | | use template0 option for creating activerecord test databases in postgres ↵ | Bobby Wilson | 2012-08-19 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | build_database task | ||||
* | | | | Removing dead code. attribute_cast_code is not called. | kennyj | 2012-09-28 | 2 | -25/+0 |
| | | | | |||||
* | | | | Fix destructive side effects from marshaling an association caused by ↵ | Jeremy Kemper | 2012-09-25 | 2 | -7/+7 |
| | | | | | | | | | | | | | | | | 65843e1acc0c8d285ff79f8c9c49d4d1215440be | ||||
* | | | | Skip tests for non-supported isolation levels | Yasuo Honda | 2012-09-26 | 1 | -2/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | i.e. Oracle database does not support these isolation levels. `:read_uncommitted` `:repeatable_read` This commit also works with other databases which do not support these isolation levels. | ||||
* | | | | Skip tests for non-supported isolation levels with Oracle | Yasuo Honda | 2012-09-25 | 1 | -0/+2 |
| | | | | |||||
* | | | | Merge pull request #6936 from jfoley/callbacks | Santiago Pastorino | 2012-09-24 | 2 | -0/+53 |
|\ \ \ \ | | | | | | | | | | | Fix collisions with before and after validation callbacks. | ||||
| * | | | | Add CHANGELOG entry and update the guide | John Foley | 2012-09-23 | 1 | -0/+4 |
| | | | | | |||||
| * | | | | Fix collisions with before and after validation callbacks. | John Foley | 2012-09-23 | 1 | -0/+49 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit allows a user to do something like: before_validation :do_stuff, :on => [ :create, :update ] after_validation :do_more, :on => [ :create, :update ] | ||||
* | | | | | make clear that expired db/schema_cache.dump are ignored | Xavier Noria | 2012-09-24 | 1 | -1/+1 |
|/ / / / | |||||
* | | | | Fix test_find_in_batches_should_use_any_column_as_primary_key | Santiago Pastorino | 2012-09-22 | 1 | -11/+8 |
| | | | | |||||
* | | | | start could be a string | Santiago Pastorino | 2012-09-21 | 2 | -3/+3 |
| | | | | | | | | | | | | | | | | | | | | Related to 761bc751d31c22e2c2fdae2b4cdd435b68b6d783 and eb876c4d07130f15be2cac7be968cc393f959c62 | ||||
* | | | | Revert "Fix find_in_batches with customized primary_key" | Santiago Pastorino | 2012-09-21 | 4 | -28/+11 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 761bc751d31c22e2c2fdae2b4cdd435b68b6d783. This commit wasn't fixing any issue just using the same table for different models with different primary keys. | ||||
* | | | | Style: remove hash noise | Jeremy Kemper | 2012-09-21 | 1 | -10/+10 |
| | | | | |||||
* | | | | Correct default charset/collation for mysql dbs | Jeremy Kemper | 2012-09-21 | 2 | -15/+30 |
| |/ / |/| | | |||||
* | | | Use default charset/collation only if *neither* is specified. Otherwise we ↵ | Jeremy Kemper | 2012-09-21 | 1 | -4/+7 |
| | | | | | | | | | | | | set utf8_unicode_ci collation on latin1 table. |