Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix `CustomCops/AssertNot` to allow it to have failure message | Ryuta Kamizono | 2018-05-13 | 1 | -3/+3 |
| | | | | Follow up of #32605. | ||||
* | Replace `assert !` with `assert_not` | Daniel Colson | 2018-04-19 | 1 | -1/+1 |
| | | | | | This autocorrects the violations after adding a custom cop in 3305c78dcd. | ||||
* | Use assert_predicate and assert_not_predicate | Daniel Colson | 2018-01-25 | 1 | -5/+5 |
| | |||||
* | Clear the transaction state when AR object is duped | Yuriy Ustushenko | 2018-01-25 | 1 | -0/+16 |
| | |||||
* | Enable `Layout/LeadingCommentSpace` to not allow cosmetic changes in the future | Ryuta Kamizono | 2017-12-14 | 1 | -3/+3 |
| | | | | Follow up of #31432. | ||||
* | Use frozen-string-literal in ActiveRecord | Kir Shatrov | 2017-07-19 | 1 | -0/+2 |
| | |||||
* | Revert "Merge pull request #29540 from kirs/rubocop-frozen-string" | Matthew Draper | 2017-07-02 | 1 | -1/+0 |
| | | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa. | ||||
* | Enforce frozen string in Rubocop | Kir Shatrov | 2017-07-01 | 1 | -0/+1 |
| | |||||
* | Raise NotImplementedError when using empty_insert_statement_value with Oracle | Koichi ITO | 2017-02-17 | 1 | -0/+2 |
| | | | | Refer: https://github.com/rsim/oracle-enhanced/pull/1180 | ||||
* | modernizes hash syntax in activerecord | Xavier Noria | 2016-08-06 | 1 | -2/+2 |
| | |||||
* | applies new string literal convention in activerecord/test | Xavier Noria | 2016-08-06 | 1 | -16/+16 |
| | | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default. | ||||
* | Don't error when `dup`ing a record with no PK | Sean Griffin | 2014-07-02 | 1 | -0/+12 |
| | |||||
* | Add missing require to fix test :bomb: | Carlos Antonio da Silva | 2014-05-02 | 1 | -0/+1 |
| | |||||
* | Move dup destroyed test to specific file that tests dup logic | Carlos Antonio da Silva | 2014-05-02 | 1 | -0/+8 |
| | | | | | Also change other related test to use existing record rather than creating new one. | ||||
* | Don't need to check if the scope respond to call | Rafael Mendonça França + Kassio Borges | 2013-08-31 | 1 | -1/+1 |
| | | | | | We are checking this when defining the default scope and raising an ArgumentError | ||||
* | Fix typo: overriden => overriDDen | Alexander Balashov | 2013-03-28 | 1 | -1/+1 |
| | |||||
* | fix typos in AR. lots of them. | Vipul A M | 2013-03-19 | 1 | -1/+1 |
| | |||||
* | Do not override attributes on `dup` by default scopes | Hiroshige Umino | 2013-02-26 | 1 | -0/+9 |
| | |||||
* | Missing repair_validations | Akira Matsuda | 2013-01-22 | 1 | -12/+14 |
| | |||||
* | Call super to nullify the reference to the original errors object in the ↵ | Christian Seiler | 2012-10-16 | 1 | -0/+14 |
| | | | | dup'ed object (call ActiveModel::Validations#initialize_dup). Closes #7291 | ||||
* | Remove mass_assignment_options from ActiveRecord | Guillermo Iguaran | 2012-09-16 | 1 | -1/+1 |
| | |||||
* | Fixed after_initialize callbacks call on AR model #dup | Bogdan Gusiev | 2012-01-07 | 1 | -0/+8 |
| | |||||
* | please use ruby -I lib:test path/to/test.rb, or export RUBY_OPT | Aaron Patterson | 2011-06-06 | 1 | -1/+1 |
| | |||||
* | Refactor Active Record test connection setup. Please see the ↵ | Jon Leighton | 2011-06-04 | 1 | -1/+1 |
| | | | | RUNNING_UNIT_TESTS file for details, but essentially you can now configure things in test/config.yml. You can also run tests directly via the command line, e.g. ruby path/to/test.rb (no rake needed, uses default db connection from test/config.yml). This will help us fix the CI by enabling us to isolate the different Rails versions to different databases. | ||||
* | Testing that dup is resetting the timestamps | Franck Verrot | 2010-11-25 | 1 | -0/+24 |
| | |||||
* | fixing variable names. oops! | Aaron Patterson | 2010-11-23 | 1 | -2/+2 |
| | |||||
* | clone and dup are working on 1.8 | Aaron Patterson | 2010-11-23 | 1 | -0/+15 |
| | |||||
* | fixing dup regressions | Aaron Patterson | 2010-11-23 | 1 | -3/+6 |
| | |||||
* | renaming duplication test to dup test | Aaron Patterson | 2010-11-23 | 1 | -0/+61 |