Browse Source

Merge branch 'develop' into dev_trustie_server

tags/v3.0.3
jasder 5 years ago
parent
commit
31738fc227
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/models/concerns/watchable.rb

+ 1
- 1
app/models/concerns/watchable.rb View File

@@ -6,7 +6,7 @@ module Watchable
has_many :watcher_users, through: :watchers, source: :user, validate: false
scope :watched_by, -> (user_id) { includes(:watchers).where(watchers: { user_id: user_id }) }
scope :following, -> (user_id) { watched_by }
scope :following, -> (user_id) { watched_by(user_id) }
end
def watched?(watchable)


Loading…
Cancel
Save