* Add support for Rails 6.0 to `ViewContext::BuildStrategy`
In Rails 6.0 the API for `ActionView::Base.new` is changing.
`ActionView::Base.new` now take arguments [1], otherwise you
will see the following deprecation warning:
```
DEPRECATION WARNING: ActionView::Base instances should be constructed with a lookup context, assignments, and a controller.
```
[1] e17fe52e0e
`ViewContext::BuildStrategy::Fast` does not have lookup context, so use `empty`
method instead of `new` to build instance.
* Bump a Rails version of dummy application
Also bump a sqlite version because Rails 6.0 requires upper sqlite
1.4.0.
* Add `ApplicationController` to dummy application
Because Action Text expects `ApplicationController` exists.
Ref: https://github.com/rails/rails/issues/35749#issuecomment-525083643
* Test against Rails 6.0 that only supported Ruby versions
## Description
Include all QueryMethods from the ORM in CollectionDecorator. The default adapter is :active_record
* Why was this change required?
It was necessary to delegate or define a method of the ORM which you are using in your decorator to make an instance of CollectionDecorator able to call it.
* Is there something you aren't happy with or that needs extra attention?
In order to support other ORM associations, we'll need to write a method `allowed?` for each strategy at `lib/draper/query_methods/load_strategy.rb`
## Testing
1. Create a decorator for the model and its association
```ruby
class OrderHistoryDecorator < Draper::Decorator
delegate_all
end
class OrderDecorator < Draper::Decorator
delegate_all
decorates_association :order_histories, with: OrderHistoryDecorator
end
```
2. Call any query method in the decorated instance
```ruby
pry(main)> Order.last.decorate.order_histories.includes(:user)
```
## References
* Issue #702
* Issue #812
- require Rails 5 since Rubygems doesn’t allow us to only require
activemodel-serializers-xml when Rails is version 5
- require Ruby 2.2 since that’s what Rails 5 requires