fix scope
This commit is contained in:
parent
8da1d6a7fc
commit
9d91b70f9d
1 changed files with 2 additions and 2 deletions
|
|
@ -33,9 +33,9 @@ class StatusMessage < Post
|
|||
after_create :queue_gather_oembed_data, :if => :contains_oembed_url_in_text?
|
||||
|
||||
#scopes
|
||||
scope :where_person_is_mentioned, lambda do |person|
|
||||
scope :where_person_is_mentioned, lambda { |person|
|
||||
joins(:mentions).where(:mentions => {:person_id => person.id})
|
||||
end
|
||||
}
|
||||
|
||||
def self.user_tag_stream(user, tag_ids)
|
||||
owned_or_visible_by_user(user).
|
||||
|
|
|
|||
Loading…
Reference in a new issue