rails/activerecord/lib
Edouard CHIN c507e9302a Fix numericality validator when defined on abstract class:
- ### Problem

  It's no longer possible to define a numeric validation on abstract
  class:

  ```ruby
    class AnimalsBase < ApplicationRecord
      self.abstract_class = true

      validates :age, numericality: { min: 18 }
    end

    class Dog < AnimalsBase
    end

    Dog.create!(age: 0) => ActiveRecord::TableNotSpecified: Dog has no table configured. Set one with Dog.table_name=
  ```

  ### Solution

  Instead of trying to get the type for attribute on the class
  defining the validation, get it from the record being validated.
2020-01-10 10:35:54 -04:00
..
active_record Fix numericality validator when defined on abstract class: 2020-01-10 10:35:54 -04:00
arel Merge pull request #38131 from kddeisz/nulls 2020-01-07 11:47:46 -03:00
rails/generators Ensure migration generator respects primary key config in references 2019-12-17 11:17:41 -05:00
active_record.rb Bump license years from 2019 to 2020 [ci skip] 2020-01-01 15:10:31 +05:30
arel.rb Fix unscoped grouped where 2019-11-21 17:27:26 -05:00