Skip to content

Commit

Permalink
Fix delegate. Update for ruby 2.6+ version
Browse files Browse the repository at this point in the history
  • Loading branch information
vsevolod committed Aug 7, 2020
1 parent 2833ceb commit e8f61b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
services: mongodb
language: ruby
before_install: gem install bundler -v='1.11.2'
script: "bundle exec rake spec:mongoid_6"
rvm:
- 2.3.0
Expand Down
5 changes: 2 additions & 3 deletions lib/mongoid-observers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@
module Mongoid
include ActiveModel::Observing

delegate(*ActiveModel::Observing::ClassMethods.public_instance_methods(false) <<
{ to: Config })
end
delegate ActiveModel::Observing::ClassMethods.public_instance_methods(false) => Config
end

0 comments on commit e8f61b4

Please sign in to comment.