Skip to content

Commit

Permalink
Update pg_search to version 2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mjankowski committed Jul 15, 2019
1 parent c8fb845 commit 813338b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ GEM
mimemagic (~> 0.3.0)
terrapin (~> 0.6.0)
pg (1.1.4)
pg_search (2.2.0)
pg_search (2.3.0)
activerecord (>= 4.2)
activesupport (>= 4.2)
pry (0.12.2)
Expand Down
2 changes: 1 addition & 1 deletion app/models/flashcard.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class Flashcard < ApplicationRecord
include PgSearch
include PgSearch::Model
multisearchable against: [:title, :prompt, :answer], if: :search_visible?

validates :title, presence: true
Expand Down
2 changes: 1 addition & 1 deletion app/models/trail.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class Trail < ApplicationRecord
extend FriendlyId

include PgSearch
include PgSearch::Model

DEFAULT_IMAGE_URL =
"https://images.thoughtbot.com/upcase/trail-title-cards/default.png".freeze
Expand Down
2 changes: 1 addition & 1 deletion app/models/video.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class Video < ApplicationRecord
extend FriendlyId

include PgSearch
include PgSearch::Model
multisearchable against: [:name, :summary, :notes], if: :search_visible?

belongs_to :watchable, polymorphic: true
Expand Down

0 comments on commit 813338b

Please sign in to comment.