elasticsearch-rails
https://github.com/elastic/elasticsearch-rails
Ruby
Elasticsearch integrations for ActiveModel/Record and Ruby on Rails
Elasticsearch::Persistence::Model::Store::InstanceMethods#new_record?
Returns true when the model has not been saved yet, false otherwise
Edit
git clone [email protected]:elastic/elasticsearch-rails.git
cd elasticsearch-rails
open elasticsearch-persistence/lib/elasticsearch/persistence/model/store.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Elasticsearch--Persistence--Model--Store--InstanceMethods-new_record--for-pr
# Commit to gitgit add elasticsearch-persistence/lib/elasticsearch/persistence/model/store.rbgit commit -m "better docs for Elasticsearch::Persistence::Model::Store::InstanceMethods#new_record?"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Elasticsearch--Persistence--Model--Store--InstanceMethods-new_record--for-pr
hub pull-request
# Celebrate!