Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Martin Markech
refinerycms-acts-as-indexed
Commits
e619c714
Unverified
Commit
e619c714
authored
Aug 29, 2018
by
Philip Arndt
Committed by
GitHub
Aug 29, 2018
Browse files
Merge branch 'master' into feature/refinery-4
parents
1057173a
09190c03
Changes
10
Hide whitespace changes
Inline
Side-by-side
.travis.yml
View file @
e619c714
...
...
@@ -19,8 +19,6 @@ notifications:
webhooks
:
-
https://webhooks.gitter.im/e/b5d48907cdc89864b874
rvm
:
-
2.5.0
-
2.4.3
-
2.3.6
-
2.2.9
-
2.5
-
2.4
sudo
:
false
app/decorators/models/refinery/blog/category_decorator.rb
View file @
e619c714
...
...
@@ -2,7 +2,7 @@ require 'acts_as_indexed'
begin
Refinery
::
Blog
::
Category
.
class_eval
do
acts_as_indexed
:fields
=>
[
:title
]
acts_as_indexed
:fields
=>
[
:title
]
unless
self
.
respond_to?
:with_query
end
rescue
NameError
end
app/decorators/models/refinery/blog/comment_decorator.rb
View file @
e619c714
...
...
@@ -2,7 +2,7 @@ require 'acts_as_indexed'
begin
Refinery
::
Blog
::
Comment
.
class_eval
do
acts_as_indexed
:fields
=>
[
:name
,
:email
,
:message
]
acts_as_indexed
:fields
=>
[
:name
,
:email
,
:message
]
unless
self
.
respond_to?
:with_query
end
rescue
NameError
end
app/decorators/models/refinery/blog/post_decorator.rb
View file @
e619c714
...
...
@@ -2,7 +2,7 @@ require 'acts_as_indexed'
begin
Refinery
::
Blog
::
Post
.
class_eval
do
acts_as_indexed
:fields
=>
[
:title
,
:
body
]
acts_as_indexed
:fields
=>
[
:title
,
:
custom_teaser
,
:body
]
unless
self
.
respond_to?
:with_query
end
rescue
NameError
end
app/decorators/models/refinery/image_decorator.rb
View file @
e619c714
...
...
@@ -3,7 +3,7 @@ require 'acts_as_indexed'
begin
Refinery
::
Image
.
class_eval
do
# Docs for acts_as_indexed http://github.com/dougal/acts_as_indexed
acts_as_indexed
:fields
=>
[
:title
]
acts_as_indexed
:fields
=>
[
:title
]
unless
self
.
respond_to?
:with_query
end
rescue
NameError
end
app/decorators/models/refinery/inquiries/inquiry_decorator.rb
View file @
e619c714
...
...
@@ -2,7 +2,7 @@ require 'acts_as_indexed'
begin
Refinery
::
Inquiries
::
Inquiry
.
class_eval
do
acts_as_indexed
:fields
=>
[
:name
,
:email
,
:message
,
:phone
]
acts_as_indexed
:fields
=>
[
:name
,
:email
,
:message
,
:phone
]
unless
self
.
respond_to?
:with_query
end
rescue
NameError
end
app/decorators/models/refinery/page_decorator.rb
View file @
e619c714
...
...
@@ -4,8 +4,11 @@ require 'stringex_lite'
begin
Refinery
::
Page
.
class_eval
do
# Docs for acts_as_indexed https://github.com/dougal/acts_as_indexed
acts_as_indexed
:fields
=>
[
:ascii_title
,
:meta_description
,
:menu_title
,
:browser_title
,
:ascii_all_page_part_content
]
unless
self
.
respond_to?
:with_query
acts_as_indexed
:fields
=>
[
:ascii_title
,
:meta_description
,
:menu_title
,
:browser_title
,
:ascii_all_page_part_content
]
end
# Used to index all the content on this page so it can be easily searched.
def
all_page_part_content
...
...
app/decorators/models/refinery/resource_decorator.rb
View file @
e619c714
...
...
@@ -3,7 +3,7 @@ require 'acts_as_indexed'
begin
Refinery
::
Resource
.
class_eval
do
# Docs for acts_as_indexed http://github.com/dougal/acts_as_indexed
acts_as_indexed
:fields
=>
[
:file_name
,
:title
,
:type_of_content
]
acts_as_indexed
:fields
=>
[
:file_name
,
:title
,
:type_of_content
]
unless
self
.
respond_to?
:with_query
end
rescue
NameError
end
app/decorators/models/refinery/setting_decorator.rb
View file @
e619c714
...
...
@@ -3,7 +3,7 @@ require 'acts_as_indexed'
begin
Refinery
::
Setting
.
class_eval
do
# Docs for acts_as_indexed http://github.com/dougal/acts_as_indexed
acts_as_indexed
:fields
=>
[
:name
]
acts_as_indexed
:fields
=>
[
:name
]
unless
self
.
respond_to?
:with_query
end
rescue
NameError
end
app/decorators/models/refinery/user_decorator.rb
View file @
e619c714
...
...
@@ -3,7 +3,7 @@ require 'acts_as_indexed'
begin
Refinery
::
Authentication
::
Devise
::
User
.
class_eval
do
# Docs for acts_as_indexed http://github.com/dougal/acts_as_indexed
acts_as_indexed
:fields
=>
[
:username
,
:email
]
acts_as_indexed
:fields
=>
[
:username
,
:email
]
unless
self
.
respond_to?
:with_query
end
rescue
NameError
end
\ No newline at end of file
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment