From d5e1a94aa2c566318a850f76c9fdd673efcfdcc2 Mon Sep 17 00:00:00 2001 From: Micah Frost Date: Thu, 12 Dec 2013 14:45:43 -0700 Subject: [PATCH] Use ActiveSupport delegation over Ruby Forwardable The delegation style found in the AssociationMatcher is an ActiveSupport style; requiring `forwardable` without extending it does not add delegation support. --- lib/shoulda/matchers/active_record/association_matcher.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/shoulda/matchers/active_record/association_matcher.rb b/lib/shoulda/matchers/active_record/association_matcher.rb index 5db0b4cd..9ea51950 100644 --- a/lib/shoulda/matchers/active_record/association_matcher.rb +++ b/lib/shoulda/matchers/active_record/association_matcher.rb @@ -1,4 +1,4 @@ -require 'forwardable' +require 'active_support/core_ext/module/delegation' module Shoulda # :nodoc: module Matchers