Skip to content

Commit

Permalink
Update README with configuration steps
Browse files Browse the repository at this point in the history
  • Loading branch information
ernsheong committed Jan 13, 2015
1 parent abe0131 commit e80e914
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,23 @@ Search
## Search text from messages

```ruby
@alice.messages.search("Search me") @alice seach text "Search me" from all messages
@alice.messages.search("Search me") @alice search text "Search me" from all messages
```

## Custom search scope name

in `config/initializers/acts-as-messageable.rb`

```ruby
ActsAsMessageable.search_scope_name = :text_search
```

or

```ruby
ActsAsMessageable.config do |config|
config.search_scope_name = :text_search
end
```

Copyright © 2011-2012 Piotr Niełacny (http://ruby-blog.pl), released under the MIT license
Expand Down

0 comments on commit e80e914

Please sign in to comment.