aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/book.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-01-21 20:37:45 -0200
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-01-21 20:37:45 -0200
commit9383de42a2cf23cc53052cec2f736864c1c562a1 (patch)
tree19ddfa20500d526311bb48f4a8ae5abffe046963 /activerecord/test/models/book.rb
parentc6ecfc1668d6e2c69d360ed376b9e3f77ad72e83 (diff)
parent55f6c8c908fea2609cbc8503f8d87460fd1b16b4 (diff)
downloadrails-9383de42a2cf23cc53052cec2f736864c1c562a1.tar.gz
rails-9383de42a2cf23cc53052cec2f736864c1c562a1.tar.bz2
rails-9383de42a2cf23cc53052cec2f736864c1c562a1.zip
Merge pull request #13776 from rails/dirty-enum
Implement the Dirty API with the Enum feature correctly. Conflicts: activerecord/CHANGELOG.md
Diffstat (limited to 'activerecord/test/models/book.rb')
-rw-r--r--activerecord/test/models/book.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/models/book.rb b/activerecord/test/models/book.rb
index 4cb2c7606b..2170018068 100644
--- a/activerecord/test/models/book.rb
+++ b/activerecord/test/models/book.rb
@@ -9,6 +9,7 @@ class Book < ActiveRecord::Base
enum status: [:proposed, :written, :published]
enum read_status: {unread: 0, reading: 2, read: 3}
+ enum nullable_status: [:single, :married]
def published!
super