Skip to content

Commit

Permalink
Fix Rails 5.2.1 compatibility for this commit in ActiveRecord 5.2.1: r…
Browse files Browse the repository at this point in the history
  • Loading branch information
Christiaan Thijssen authored and JonRowe committed Sep 16, 2018
1 parent 5ecc490 commit e49f085
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/rspec/active_model/mocks/mocks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ class Association
def initialize(association_name)
@association_name = association_name
end

def inversed_from(record)
self.target = record
@inversed = !!record
end
end

module ActiveRecordInstanceMethods
Expand Down

0 comments on commit e49f085

Please sign in to comment.