mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-23 17:22:24 -04:00
Removed author_exists scope. It is part of default
This commit is contained in:
@@ -36,8 +36,7 @@ class Post < ActiveRecord::Base
|
||||
end
|
||||
end
|
||||
|
||||
default_scope { author_exists.order(created_at: :desc) }
|
||||
scope :author_exists, -> { joins(:author) }
|
||||
default_scope { joins(:author).order(created_at: :desc) }
|
||||
|
||||
validates :subject,
|
||||
presence: true,
|
||||
|
||||
Reference in New Issue
Block a user