Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | Auto-generate stable fixture UUIDs on PostgreSQL. | Roderick van Domburg | 2014-01-07 | 1 | -9/+24 | |
| | | | | | | | | Fixes: #11524 | |||||
* | | Extend fixture label replacement to allow string interpolation | Eric Steele | 2014-03-15 | 1 | -1/+2 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allows fixtures to use their $LABEL as part of a string instead of limiting use to the entire value. mark: first_name: $LABEL username: $LABEL1973 email: $LABEL@$LABELmail.com users(:mark).first_name # => mark users(:mark).username # => mark1973 users(:mark).email # => mark@markmail.com | |||||
* | | Fixed typo in comment about MAX_ID. | Vajrasky Kok | 2014-02-23 | 1 | -1/+1 | |
| | | ||||||
* | | Update deprecation warning to give more information about caller | T.J. Schuck | 2014-01-16 | 1 | -2/+2 | |
| | | ||||||
* | | Revert "ask the fixture set for the sql statements" | Aaron Patterson | 2014-01-09 | 1 | -12/+10 | |
|/ | | | | | | | | | This reverts commit 026d0555685087845b74dd87a0417b5a164b1c13. Conflicts: activerecord/lib/active_record/fixtures.rb Fixes #13383 | |||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2013-12-20 | 1 | -1/+1 | |
|\ | ||||||
| * | Typos. return -> returns. [ci skip] | Lauro Caetano | 2013-12-03 | 1 | -1/+1 | |
| | | ||||||
* | | Introduce a context for rendering fixtures ERB. | Victor Costan | 2013-12-03 | 1 | -0/+32 | |
|/ | | | | | | | | | | Fixture files are passed through an ERB renderer before being read as YAML. The rendering is currently done in the context of the main object, so method definitons leak into other fixtures, and there is no clean place to define fixture helpers. After this commit, the ERB renderer will use a new subclass of ActiveRecord::FixtureSet.context_class each time a fixture is rendered. | |||||
* | ask the fixture set for the sql statements | Aaron Patterson | 2013-11-04 | 1 | -10/+12 | |
| | ||||||
* | remove HABTM special cases from the fixtures | Aaron Patterson | 2013-10-02 | 1 | -12/+0 | |
| | ||||||
* | let the class cache object clean up user input | Aaron Patterson | 2013-09-09 | 1 | -8/+20 | |
| | ||||||
* | Fix fixtures regression that required table names to map to classes only, ↵ | Jeremy Kemper | 2013-09-08 | 1 | -1/+1 | |
| | | | | not class names | |||||
* | use polymorphic proxies to remove duplicate code | Aaron Patterson | 2013-09-06 | 1 | -24/+43 | |
| | ||||||
* | reduce duplication somewhat | Aaron Patterson | 2013-09-06 | 1 | -14/+14 | |
| | ||||||
* | make the duplicate code more similar | Aaron Patterson | 2013-09-06 | 1 | -4/+10 | |
| | ||||||
* | auto link hm:t fixture join tables like habtm | Aaron Patterson | 2013-09-06 | 1 | -0/+16 | |
| | ||||||
* | don't depend on object state when reading fixture files | Aaron Patterson | 2013-09-06 | 1 | -8/+7 | |
| | ||||||
* | ensure @model_class is initialized | Aaron Patterson | 2013-09-06 | 1 | -0/+1 | |
| | ||||||
* | no need to dup | Aaron Patterson | 2013-09-05 | 1 | -1/+1 | |
| | ||||||
* | push logic outside the FixtureSet constructor | Aaron Patterson | 2013-09-05 | 1 | -3/+3 | |
| | ||||||
* | only construct the FixtureSet with AR models | Aaron Patterson | 2013-09-05 | 1 | -2/+11 | |
| | ||||||
* | push constant lookup in the a cache object | Aaron Patterson | 2013-09-05 | 1 | -2/+21 | |
| | ||||||
* | Add config to method calls in fixtures. | wangjohn | 2013-08-26 | 1 | -23/+26 | |
| | | | | | | | Allows you to change your configuration for calls to `table_name_prefix`, `table_name_suffix`, and `pluralize_table_names`. The default configuration is still ActiveRecord::Base, but you are now able to change the configuration easily. | |||||
* | Removing instances of string class_names in fixtures. | wangjohn | 2013-08-24 | 1 | -3/+6 | |
| | | | | | | | Also, constantizing the default_fixture_model_name when it gets loaded in from the file. Later, when the class_name is passed to a new FixtureSet, a deprecation warning will occur if the class_name is a string. | |||||
* | Deprecating passing strings as class name in fixtures. | wangjohn | 2013-08-23 | 1 | -7/+1 | |
| | ||||||
* | load fixtures from linked folders | Kassio Borges | 2013-08-05 | 1 | -2/+2 | |
| | ||||||
* | extract habtm handling to a method | Aaron Patterson | 2013-08-01 | 1 | -8/+12 | |
| | ||||||
* | Remove deprecated `ActiveRecord::Fixtures.find_table_name` in favour of ↵ | Vipul A M | 2013-07-03 | 1 | -6/+0 | |
| | | | | `ActiveRecord::Fixtures.default_fixture_model_name`. | |||||
* | fixture setup does not rely on `AR::Base.configurations`. | Yves Senn | 2013-06-15 | 1 | -4/+0 | |
| | | | | | | | | As you can also configure your database connection using `ENV["DATABASE_URL"]`, the fixture setup can't reply on the `.configurations` Hash. As the fixtures are only loaded when ActiveRecord is actually used (`rails/test_help.rb`) it should be safe to drop the check for an existing configuration. | |||||
* | reverse comparison because of strange AS behavior | Aaron Patterson | 2013-05-21 | 1 | -1/+1 | |
| | | | | http://tenderlovemaking.com/2013/05/21/one-danger-of-freedom-patches.html | |||||
* | stop depending on callbacks | Aaron Patterson | 2013-04-04 | 1 | -6/+12 | |
| | ||||||
* | Allows setting fixture_path to a Pathname | Alexander Murmann and Can Berk Güder | 2013-03-21 | 1 | -1/+1 | |
| | ||||||
* | fix example of setting DEFAULTS in fixtures | Jonathan Garvin | 2013-01-16 | 1 | -2/+2 | |
| | ||||||
* | These are already required through AS/rails | Akira Matsuda | 2013-01-07 | 1 | -2/+0 | |
| | | | | | | * dependencies/autoload * concern * deprecation | |||||
* | Fix argument name in fixtures method | Carlos Antonio da Silva | 2012-12-18 | 1 | -1/+1 | |
| | | | | Relatedo to 8e44c93b4c0e4b1bdd0fca13b79f5be1088d6959. | |||||
* | Revert "use File.basename to get the filename minus .yml" | Aaron Patterson | 2012-12-18 | 1 | -4/+3 | |
| | | | | | | | This reverts commit 00c5342d96a3677c0a6a2bb8316c76182f5bdfdd. Conflicts: activerecord/lib/active_record/fixtures.rb | |||||
* | Remove useless check of AR being defined from teardown fixtures | Carlos Antonio da Silva | 2012-11-27 | 1 | -5/+4 | |
| | | | | | | | We are already in the AR namespace, there's no way for it to be undefined. See the cousin commit 13e72db77063f57c3028a906690d42fb068845bb Refactor a bit teardown fixtures to avoid two conditionals. | |||||
* | Add a deprecation before removing find_table_name | Alexey Muranov | 2012-11-17 | 1 | -0/+6 | |
| | | | The `ActiveRecord::Fixtures::find_table_name` method was removed from "master" almost a year ago, but it was never deprecated. Here it comes back, more dead than alive. | |||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-11-17 | 1 | -2/+2 | |
|\ | | | | | | | | | Conflicts: actionpack/lib/action_dispatch/routing/redirection.rb | |||||
| * | 1.9 Syntax related changes | AvnerCohen | 2012-11-10 | 1 | -2/+2 | |
| | | ||||||
* | | Properly deprecate ConnectionHandler#connection_pools | Jon Leighton | 2012-11-09 | 1 | -1/+1 | |
|/ | | | | | | | | Rather than just changing it and hoping for the best. Requested by @jeremy: https://github.com/rails/rails/commit/ba1544d71628abff2777c9c514142d7e9a159111#commitcomment-2106059 | |||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-11-03 | 1 | -0/+1 | |
|\ | | | | | | | | | | | | | Conflicts: actionpack/lib/action_controller/metal/mime_responds.rb activerecord/lib/active_record/attribute_methods.rb guides/source/working_with_javascript_in_rails.md | |||||
| * | nodoc deprecated AR::Fixtures constant [ci skip] | Francesco Rodriguez | 2012-10-21 | 1 | -0/+1 | |
| | | ||||||
* | | Remove ActiveRecord::Model | Jon Leighton | 2012-10-26 | 1 | -1/+1 | |
|/ | | | | | | | | | | In the end I think the pain of implementing this seamlessly was not worth the gain provided. The intention was that it would allow plain ruby objects that might not live in your main application to be subclassed and have persistence mixed in. But I've decided that the benefit of doing that is not worth the amount of complexity that the implementation introduced. | |||||
* | Remove the leading :: constant qualifier in the ActiveRecord::Fixtures ↵ | Jeremy Kemper | 2012-10-10 | 1 | -1/+1 | |
| | | | | deprecation message | |||||
* | Move/rename files to follow naming conventions | Alexey Muranov | 2012-10-07 | 1 | -1/+1 | |
| | ||||||
* | Deprecate "Fixtures" constant | Alexey Muranov | 2012-10-07 | 1 | -0/+8 | |
| | ||||||
* | Rename "Fixtures" class to "FixtureSet" | Alexey Muranov | 2012-10-07 | 1 | -17/+17 | |
| | | | | 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. | |||||
* | Move transaction joinability into the transaction object | Jon Leighton | 2012-09-15 | 1 | -3/+2 | |
| | ||||||
* | Start to tease out transaction handling into a state machine | Jon Leighton | 2012-09-15 | 1 | -6/+2 | |
| |