Fixed the batch actions drop down menu for nested tables
refactor
If nil return value, use the form buffer instead

closes #887
Merge pull request #1996 from Daxter/bugfix/887-form-buffers

[887] Respect the form buffer!
rollback shoulda-matchers
Merge pull request #2004 from Daxter/bugfix/rollback-mocha

Rollback mocha / shoulda-matchers
update all rails versions in the test suite

For #2005

This fixes a problem encountered by anyone who had generated their
`spec/rails` test environment (occurs on first run) after #1970 was
applied. The problem was that I had updated only a few places where we
refer to the current Rails version to be tested. This commit changes
all of them, as well as bumps 3.2 and 3.1 to reflect the new release.

If you ran into the #2005 problem, please run these steps:
```ruby
rm Gemfile.lock
bundle
rm -rf spec/rails/
rspec spec
```
consolidate Rails versions to the Travis config file

Now everything depends on `.travis.yml`. If that updates, so to does
the manually-run test suite.
Merge pull request #2006 from Daxter/bugfix/update-all-the-rails

[2005] Update all the Rails!
Merge pull request #2007 from fd/master

Position the dropdown menu relative to the next positioned parent instead of the document.
Merge branch 'refs/heads/master' into fork