Skip to content

Commit

Permalink
Update to pg_search 2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
remomueller committed Aug 4, 2019
1 parent 216a31e commit 2b91899
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## 10.0.0

### Enhancements
- **Gem Changes**
- Update to pg_search 2.3.0

## 9.0.0 (June 23, 2019)

### Enhancements
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ gem "jquery-rails", "~> 4.3.3"
gem "jquery-ui-rails", "~> 6.0.1"
gem "kaminari", "~> 1.1.1"
gem "mini_magick", "~> 4.9.2"
gem "pg_search", "~> 2.2.0"
gem "pg_search", "~> 2.3.0"

# Rails defaults
gem "bootsnap", ">= 1.1.0", require: false
Expand Down
2 changes: 1 addition & 1 deletion app/models/document.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Document < ApplicationRecord
DEFAULT_ORDER = "LOWER(documents.filename)"

# Concerns
include PgSearch
include PgSearch::Model
multisearchable against: [:filename, :content_type]

# Validations
Expand Down
2 changes: 1 addition & 1 deletion app/models/site.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def self.searchable_attributes
%w(name slug)
end

include PgSearch
include PgSearch::Model
multisearchable against: [:name, :slug, :center_type]

# Validations
Expand Down
2 changes: 1 addition & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def self.searchable_attributes
%w(full_name email username)
end

include PgSearch
include PgSearch::Model
multisearchable against: [:full_name, :email, :username, :keywords, :phone, :role]

# Scopes
Expand Down
2 changes: 1 addition & 1 deletion app/models/video.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Video < ApplicationRecord
DEFAULT_ORDER = "videos.name"

# Concerns
include PgSearch
include PgSearch::Model
multisearchable against: [:name]

include Searchable
Expand Down

0 comments on commit 2b91899

Please sign in to comment.