- 01 2月, 2015 2 次提交
-
-
-
由 Hyonjee Joo 提交于
-
- 31 1月, 2015 1 次提交
-
-
由 Sean Griffin 提交于
Remaining are `limit`, `precision`, `scale`, and `type` (the symbol version). These will remain on the column, since they mirror the options to the `column` method in the schema definition DSL
-
- 15 1月, 2015 1 次提交
-
-
由 Vipul A M 提交于
- Add check for not deleting previously created fixtures, to overcome sti fixtures from multiple files - Added fixtures and fixtures test to verify the same - Fixed wrong fixtures duplicating data insertion in same table
-
- 06 1月, 2015 1 次提交
-
-
由 Prathamesh Sonpatki 提交于
- Fixtures with non-string labels such as integers should be accessed using integer label as key. For eg. pirates(1) or pirates(42). - But this results in NotFound error because the label is converted into string before looking up into the fixtures hash. - After this commit, the label is converted into string only if its a symbol. - This issue was fount out while adding a test case for https://github.com/rails/rails/commit/7b910917.
-
- 05 1月, 2015 1 次提交
-
-
由 Matt Hogan 提交于
Ruby 4.2 started doing `value.gsub('$LABEL', label)` for fixture label interpolation, but you can have have valid YAML where `label` isn't a String. For example: ```YAML 0: name: John email: johndoe@gmail.com 1: name: Jane email: janedoe@gmail.com ``` This YAML will create a label that is a Fixnum, causing `TypeError: no implicit conversion of Fixnum into String.`
-
- 04 1月, 2015 1 次提交
-
-
由 Rafael Mendonça França 提交于
-
- 29 11月, 2014 1 次提交
-
-
由 Erik Michaels-Ober 提交于
-
- 23 11月, 2014 1 次提交
-
-
由 Sean Griffin 提交于
For some reason changing `.find` to `.unscoped.find` in https://github.com/rails/rails/commit/f766abd4cf3eb75469d3646cfb6d85e668c619f3 caused `scoping` to leak in some tests when run in isolation (looks like a concurrency issue?). `relation_scoping_test.rb` is a case that failed. From what I can tell it should not be possible, but changing to the block form fixes it. There is a deeper issue that I can't seem to find. /cc @senny
-
- 21 11月, 2014 1 次提交
-
-
由 Yves Senn 提交于
Prior to this patch you'd end up with an error like: ``` ActiveRecord::RecordNotFound: Couldn't find <Model> with 'id'=<id> [WHERE (<default_scope condition>)] ```
-
- 03 11月, 2014 1 次提交
-
-
由 Pablo Herrero 提交于
-
- 07 10月, 2014 1 次提交
-
-
由 grosser 提交于
-
- 29 9月, 2014 1 次提交
-
-
由 Erik Michaels-Ober 提交于
Hash#keys.each allocates an array of keys; Hash#each_key iterates through the keys without allocating a new array. This is the reason why Hash#each_key exists.
-
- 23 9月, 2014 1 次提交
-
-
由 Will Bryant 提交于
fix fixtures not loading if a belongs_to association is defined with a :foreign_key option that's a symbol
-
- 19 9月, 2014 1 次提交
-
-
由 Prathamesh Sonpatki 提交于
- Added a note about some features which are not dependent on auto-generated ID's. - [ci skip]
-
- 04 9月, 2014 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 29 8月, 2014 1 次提交
-
-
由 yuuji.yaginuma 提交于
-
- 18 7月, 2014 1 次提交
-
-
由 Peter Schröder 提交于
-
- 16 7月, 2014 1 次提交
-
-
由 Rafael Mendonça França 提交于
These methods are not random so they should not belings to SecureRandom module.
-
- 14 6月, 2014 2 次提交
-
-
由 Rafael Mendonça França 提交于
This partially reverts commit 1a203d5e. Reason: It was committed by accident
-
由 Zachary Scott 提交于
-
- 11 6月, 2014 2 次提交
-
-
由 Akshay Vishnoi 提交于
-
由 Kuldeep Aggarwal 提交于
-
- 05 6月, 2014 1 次提交
-
-
由 schneems 提交于
-
- 03 6月, 2014 1 次提交
-
-
由 eileencodes 提交于
Fix polymorphic to check for `options[:polymorphic]` instead of `options.key? :polymorphic` and then reuse the method `polymorphic?` method instead of constantly checking the same `options[:polymorphic]`.
-
- 02 6月, 2014 2 次提交
- 25 5月, 2014 1 次提交
-
-
由 Arthur Neves 提交于
Fix habtm reflection Conflicts: activerecord/CHANGELOG.md activerecord/lib/active_record/counter_cache.rb activerecord/lib/active_record/reflection.rb activerecord/test/cases/reflection_test.rb
-
- 11 4月, 2014 1 次提交
-
-
由 Rafael Mendonça França 提交于
-
- 16 3月, 2014 1 次提交
-
-
由 Eric Steele 提交于
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
-
- 23 2月, 2014 1 次提交
-
-
由 Vajrasky Kok 提交于
-
- 17 1月, 2014 1 次提交
-
-
由 T.J. Schuck 提交于
-
- 10 1月, 2014 1 次提交
-
-
由 Aaron Patterson 提交于
This reverts commit 026d0555. Conflicts: activerecord/lib/active_record/fixtures.rb Fixes #13383
-
- 08 1月, 2014 1 次提交
-
-
由 Roderick van Domburg 提交于
Fixes: #11524
-
- 03 12月, 2013 2 次提交
-
-
由 Lauro Caetano 提交于
-
由 Victor Costan 提交于
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.
-
- 05 11月, 2013 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 03 10月, 2013 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 10 9月, 2013 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 08 9月, 2013 1 次提交
-
-
由 Jeremy Kemper 提交于
-