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
193b1a8e
Unverified
Commit
193b1a8e
authored
Aug 27, 2018
by
Brice Sanchez
Committed by
GitHub
Aug 27, 2018
Browse files
Merge pull request #15 from matiasgarciaisaia/index-blog-post-custom-teaser
Index blog posts' custom teaser
parents
3a6d6af6
7f73215d
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/decorators/models/refinery/blog/post_decorator.rb
View file @
193b1a8e
...
...
@@ -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
]
end
rescue
NameError
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