spec/models.rb in active_null-1.0.0 vs spec/models.rb in active_null-1.1.0
- old
+ new
@@ -13,9 +13,11 @@
end
class User < ActiveRecord::Base
extend ActiveNull
has_many :comments, as: :author
+
+ null_model(:guest)
end
class Comment < ActiveRecord::Base
extend ActiveNull
belongs_to :post