elasticsearch-rails

https://github.com/elastic/elasticsearch-rails

Ruby

Elasticsearch integrations for ActiveModel/Record and Ruby on Rails

Elasticsearch::Generators::ModelGenerator#create_model_file

No Docs, write some!

Source | Google | Stack overflow

Edit

git clone [email protected]:elastic/elasticsearch-rails.git

cd elasticsearch-rails

open elasticsearch-persistence/lib/rails/generators/elasticsearch/model/model_generator.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Elasticsearch--Generators--ModelGenerator-create_model_file-for-pr


# Commit to git

git add elasticsearch-persistence/lib/rails/generators/elasticsearch/model/model_generator.rbgit commit -m "better docs for Elasticsearch::Generators::ModelGenerator#create_model_file"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-Elasticsearch--Generators--ModelGenerator-create_model_file-for-pr

hub pull-request


# Celebrate!