aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/fixtures.rb
Commit message (Collapse)AuthorAgeFilesLines
* table name needs to be classified when instantiating fixturesAaron Patterson2011-04-291-2/+4
|
* s/ERb/ERB/gAkira Matsuda2011-04-031-3/+3
| | | | | The author of ERB sais, his eRuby implementation was originally named "ERb/ERbLight" and then renamed to "ERB" when started bundled as a Ruby standard lib. http://www2a.biglobe.ne.jp/~seki/ruby/erb.html
* Merge remote branch 'rails/master' into identity_mapEmilio Tagua2011-02-181-36/+36
|\ | | | | | | | | | | Conflicts: activerecord/lib/active_record/associations/association.rb activerecord/lib/active_record/fixtures.rb
| * fixture methods can be overridden and super() is usefulAaron Patterson2011-02-151-14/+17
| |
| * fixing variable names to reflect realityAaron Patterson2011-02-151-11/+11
| |
| * this is in the AR namespace, so AR must existAaron Patterson2011-02-151-1/+1
| |
| * fixing variable names, removing FixtureFile instances from test ivarsAaron Patterson2011-02-151-15/+14
| |
| * removing unused variableAaron Patterson2011-02-151-3/+1
| |
* | Merge remote branch 'rails/master' into identity_mapEmilio Tagua2011-02-151-141/+131
|\| | | | | | | | | | | | | | | | | | | | | | | Conflicts: activerecord/examples/performance.rb activerecord/lib/active_record/association_preload.rb activerecord/lib/active_record/associations.rb activerecord/lib/active_record/associations/association_proxy.rb activerecord/lib/active_record/autosave_association.rb activerecord/lib/active_record/base.rb activerecord/lib/active_record/nested_attributes.rb activerecord/test/cases/relations_test.rb
| * remove accidental raise!Aaron Patterson2011-02-141-1/+0
| |
| * removing irrelevant testAaron Patterson2011-02-141-0/+1
| |
| * remove unused methodsAaron Patterson2011-02-141-35/+0
| |
| * extract database activity out of Fixtures instancesAaron Patterson2011-02-141-7/+23
| |
| * extract rows that should be inserted to a methodAaron Patterson2011-02-141-12/+12
| |
| * fixtures will return a list of tables that may be effected, delete existing ↵Aaron Patterson2011-02-141-6/+25
| | | | | | | | fixtures will delete those tables
| * HabtmFixtures class is no longer neededAaron Patterson2011-02-141-31/+22
| |
| * key habtm fixtures off table nameAaron Patterson2011-02-111-5/+5
| |
| * Fixture class no longer needs a reference to the database connectionAaron Patterson2011-02-111-16/+4
| |
| * convert fixtures to a list of hashes to insertAaron Patterson2011-02-111-2/+6
| |
| * Fixtures class constantizes this value, so no need to do it twiceAaron Patterson2011-02-111-3/+3
| |
| * database quoting should take care of this, no need to gsubAaron Patterson2011-02-111-1/+1
| |
| * calculate model class on constructionAaron Patterson2011-02-111-16/+11
| |
| * clear cache for all connections when resettingAaron Patterson2011-02-111-4/+3
| |
| * avoid side effects from method calls, localize ivar assignmentAaron Patterson2011-02-111-3/+4
| |
| * create fixtures always returns a list, so build a hash from the listAaron Patterson2011-02-111-10/+2
| |
| * create_fixtures() should always return a listAaron Patterson2011-02-111-4/+4
| |
| * fixing variable namesAaron Patterson2011-02-111-4/+10
| |
| * use hash defaults to dry up ||= callsAaron Patterson2011-02-111-27/+22
| |
| * refactor fixtures to do less work in the constructorAaron Patterson2011-02-111-10/+23
| |
| * favor composition over inheritence. use AS::OrderedHash rather than omapAaron Patterson2011-02-111-19/+24
| |
| * load and prefer psych as the YAML parser when it is availableAaron Patterson2011-01-211-0/+6
| |
| * Have a proper AssociationReflection#foreign_type method rather than using ↵Jon Leighton2011-01-031-8/+3
| | | | | | | | options[:foreign_type]
| * Rename AssociationReflection#primary_key_name to foreign_key, since the ↵Jon Leighton2010-12-311-1/+1
| | | | | | | | options key which it relates to is :foreign_key
* | IdentityMap - misc fixesMarcin Raczkowski2010-11-191-1/+3
|/ | | | | | - Added IdentityMap to be included into AR::Base - Fixed bug with Mysql namespace missing when running tests only for sqlite - Added sqlite as default connection
* use new skool Ruby instead of Ruby Classic™Aaron Patterson2010-09-271-5/+3
|
* replacing superclass_delegating_accessor with class_attributeNeeraj Singh2010-08-311-6/+6
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-141-18/+18
| | | | 's/[ \t]*$//' -i {} \;)
* Removing most of the symbol to proc usage in Active RecordPrem Sichanugrist2010-08-131-2/+2
| | | | This will hopefully make Active Record run a bit more faster.
* Raising exception if fixture file can't be foundPaul Hieromnimon2010-08-111-0/+4
|
* ensuring that description does not exceed 100 columnsNeeraj Singh2010-08-021-20/+30
|
* Make use of redefine_method, removed some more redefining warningsŁukasz Strzałkowski2010-07-191-1/+1
|
* primary_key_name already checks for the model_classAaron Patterson2010-07-141-2/+2
|
* use array intersection for dry / faster codeAaron Patterson2010-07-141-3/+2
|
* Clarify Fixture#key_ and value_listJeremy Kemper2010-06-081-7/+5
|
* prevent to run fixture accessor (e.g. test_foos for TestFoo model) as a test ↵Nobuhiro IMAI2010-05-161-0/+1
| | | | | | | case [#2992 state:resolved] Signed-off-by: Wijnand Wiersma <wijnand@videre.net> Signed-off-by: José Valim <jose.valim@gmail.com>
* AR: fixed postgres fixture tests [#4519 state:resolved]Cezary Baginski2010-05-011-1/+1
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Support fixtures for namespaced models [#2965 state:resolved]Andrew White2010-04-251-4/+5
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Use Array.wrap to quiet 1.8.8 deprecationJeremy Kemper2010-04-241-3/+4
|
* adds missing requires for Object#blank? and Object#present?Xavier Noria2010-03-281-0/+1
|
* Merge remote branch 'mainstream/master'Pratik Naik2010-01-171-4/+3
|\ | | | | | | | | Conflicts: actionpack/lib/action_controller/metal/flash.rb