aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/book.rb
diff options
context:
space:
mode:
authoreileencodes <eileencodes@gmail.com>2015-07-02 15:42:52 -0400
committereileencodes <eileencodes@gmail.com>2015-07-02 15:42:52 -0400
commiteff3a3178e93405d9af06acbb1e269489d650cb7 (patch)
tree65e66263fdd5808b8c1dde155cca5689ecde70b6 /activerecord/test/models/book.rb
parentbea7fee7c72a0783c87c78e98c448991feab45bf (diff)
downloadrails-eff3a3178e93405d9af06acbb1e269489d650cb7.tar.gz
rails-eff3a3178e93405d9af06acbb1e269489d650cb7.tar.bz2
rails-eff3a3178e93405d9af06acbb1e269489d650cb7.zip
Use default model enum in fixtures if not defined
After 908cfef was introduced fixtures that did not set an enum would return nil instead of the default enum value. The fixtures should assume the default if a different enum is not defined. The change checks first if the enum is defined in the fixture before setting it based on the fixture.
Diffstat (limited to 'activerecord/test/models/book.rb')
0 files changed, 0 insertions, 0 deletions