activerecord-oracle_enhanced-adapter-monky_patch_755 Gem Version

A monkey patch for oracle-enhanced ISSUE #755.

ISSUE #755 has been resolved on activerecord-oracle_enhanced-adapter 1.7.3 or higher.

The development of this gem has ended. Rails 5.2 or higher are not supported.

Installation

Add these lines to your application's Gemfile:

gem 'activerecord-oracle_enhanced-adapter-monky_patch_755'

And then execute:

$ bundle

Or install it yourself as:

$ gem install activerecord-oracle_enhanced-adapter-monky_patch_755

Target

  • 'activerecord', '>= 4.2.1'
  • 'activerecord-oracle_enhanced-adapter', '>= 1.6.0'

Motivation

This library is bound to solve this problem in Rails 4.2.x with Oracle.

> created_at = Model.first.created_at
> Model.where(created_at: created_at)
  => []

Above is not expected. This library will apply a patch as a following behavior.

> created_at = Model.first.created_at
> Model.where(created_at: created_at)
  => [#<Model id: ***snip***>]

To explain this a little further: oracle-enhanced ISSUE #755.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

activerecord-oracle_enhanced-adapter-monky_patch_755 is released under the MIT License.