spec/dummy/app/models/post.rb in notify_on-1.0.1 vs spec/dummy/app/models/post.rb in notify_on-1.0.2
- old
+ new
@@ -1,9 +1,9 @@
class Post < ApplicationRecord
# ---------------------------------------- Associations
- belongs_to :author, :class_name => User
+ belongs_to :author, :class_name => 'User'
# ---------------------------------------- Attributes
enum :state => { :draft => 0, :pending => 1, :published => 2 }