Skip to content

Commit

Permalink
Merge pull request #23 from theablefew/fix/update_readme
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
esmarkowski authored Mar 5, 2024
2 parents 1edc69b + 7a073c2 commit 8c7b301
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,32 @@ If bundler is not being used to manage dependencies, install the gem by executin

$ gem install stretchy-model

<details>
<summary>Rails Configuration</summary>



```sh
rails credentials:edit
```

#### Add elasticsearch credentials
```yaml
elasticsearch:
url: localhost:9200
```
#### Create an initializer
<p><sub><em>config/initializers/stretchy.rb</em></sub></p>
```ruby {file=config/initializers/stretchy.rb}
Stretchy.configure do |config|
config.client = Elasticsearch::Client.new url: Rails.application.credentials.elasticsearch.url, log: true
end
```
</details>


## Development

After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
Expand Down

0 comments on commit 8c7b301

Please sign in to comment.