README.md in search_cop-1.1.0 vs README.md in search_cop-1.2.0

- old
+ new

@@ -1,8 +1,8 @@ # SearchCop -[![Build Status](https://secure.travis-ci.org/mrkamel/search_cop.png?branch=master)](http://travis-ci.org/mrkamel/search_cop) +[![Build Status](https://github.com/mrkamel/search_cop/workflows/test/badge.svg?branch=master)](https://github.com/mrkamel/search_cop/actions?query=workflow%3Atest) [![Code Climate](https://codeclimate.com/github/mrkamel/search_cop.png)](https://codeclimate.com/github/mrkamel/search_cop) [![Gem Version](https://badge.fury.io/rb/search_cop.svg)](http://badge.fury.io/rb/search_cop) ![search_cop](https://raw.githubusercontent.com/mrkamel/search_cop_logo/master/search_cop.png) @@ -325,9 +325,19 @@ such that SearchCop will omit the left most wildcard. ```ruby User.search("admin") # ... WHERE users.username LIKE 'admin%' +``` + +Similarly, you can disable the right wildcard as well: + +```ruby +search_scope :search do + attributes :username + + options :username, right_wildcard: false +end ``` ## Default operator When you define multiple fields on a search scope, SearcCop will use