solidus

https://github.com/solidusio/solidus

Ruby

🛒 Solidus, the open-source eCommerce framework for industry trailblazers.

Spree::Core::Search::Variant#search_terms

Returns an array of search term symbols that will be passed to Ransack
to query the DB for the given word.
Subclasses may override this to allow conditional filtering, etc.

Source | Google | Stack overflow

Edit

git clone [email protected]:solidusio/solidus.git

cd solidus

open core/lib/spree/core/search/variant.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Spree--Core--Search--Variant-search_terms-for-pr


# Commit to git

git add core/lib/spree/core/search/variant.rbgit commit -m "better docs for Spree::Core::Search::Variant#search_terms"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Spree--Core--Search--Variant-search_terms-for-pr

hub pull-request


# Celebrate!