We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28ffe4f commit 50118e1Copy full SHA for 50118e1
Gemfile.lock
@@ -1,6 +1,6 @@
1
GIT
2
remote: https://github.com/cerebris/jsonapi-resources.git
3
- revision: e385293a7b5bbf5a483a4bef9bf7f78dc174c49f
+ revision: 7335d833e56c9eece47166b8d0e70e658c87f47f
4
specs:
5
jsonapi-resources (0.3.3)
6
rails (>= 4.0)
app/models/post.rb
class Post < ActiveRecord::Base
belongs_to :author
- has_many :comments, -> { where(approved: true) }
+ has_many :comments, -> { where(approved: true) }, :dependent => :destroy
validates :slug, uniqueness: true
0 commit comments