Skip to content

Commit 909e0e7

Browse files
committed
clear PGSearch deprecation warning
1 parent 2e64657 commit 909e0e7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/models/doc.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class Doc < ActiveRecord::Base
3939
validates :body, presence: true
4040
validates :category_id, presence: true
4141

42-
include PgSearch
42+
include PgSearch::Model
4343
multisearchable against: [:title, :body, :keywords],
4444
:if => lambda { |record| record.category.present? && record.category.publicly_viewable? && record.active && record.category.active? }
4545

app/models/topic.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class Topic < ActiveRecord::Base
4545

4646
paginates_per 15
4747

48-
include PgSearch
48+
include PgSearch::Model
4949
multisearchable :against => [:id, :name, :post_cache],
5050
:if => :public?
5151

app/models/user.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class User < ActiveRecord::Base
8383
include Gravtastic
8484
mount_uploader :profile_image, ProfileImageUploader
8585

86-
include PgSearch
86+
include PgSearch::Model
8787
pg_search_scope :user_search,
8888
against: [:name, :login, :email, :company, :account_number, :home_phone, :work_phone, :cell_phone]
8989

0 commit comments

Comments
 (0)