gem 'tire'ENV['ELASTICSEARCH_URL'] = ENV['BONSAI_URL']| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>comment</key> | |
| <string> | |
| TODO: unresolved issues | |
| text: |
| # An example of elasticsearch & Tire setup for ActiveRecord associations. | |
| # | |
| # A `Book has_many :chapters` scenario, with mapping and JSON serialization | |
| # for indexing associated models. | |
| # | |
| # Demonstrates three important caveats as of now: | |
| # | |
| # 1. You you have to use `touch: true` in the `belongs_to` declaration, | |
| # to automatically notify the parent model about the update. | |
| # |