README.md in ebisu_connection-0.2.0 vs README.md in ebisu_connection-0.3.0
- old
+ new
@@ -131,14 +131,18 @@
Read query will be access to slave server.
Article.where(:id => 1)
Article.count
-If you want to access to master saver, use readonly(false).
+If you want to access to the master server, use read_master.
- Article.where(:id => 1).readonly(false)
+```ruby
+Article.where(:id => 1).read_master
+```
+It is possible to use readonly(false) instead of read_master, but it will be depricated at future version.
+
In transaction, Always will be access to master server.
Article.transaction do
Article.where(:id => 1)
end
@@ -157,11 +161,11 @@
I'm glad that you would do test!
To run the test suite, you need mysql installed.
How to setup your test environment.
```bash
-bundle install --path bundle
-GEM_HOME=bundle/ruby/(your ruby version) gem install bundler --pre
+bundle install --path .bundle
+GEM_HOME=.bundle/ruby/(your ruby version) gem install bundler --pre
bundle exec appraisal install
```
This command run the spec suite for all rails versions supported.