diff --git a/lib/active_record/mass_assignment_security/inheritance.rb b/lib/active_record/mass_assignment_security/inheritance.rb
index <HASH>..<HASH> 100644
--- a/lib/active_record/mass_assignment_security/inheritance.rb
+++ b/lib/active_record/mass_assignment_security/inheritance.rb
@@ -9,10 +9,10 @@ module ActiveRecord
         # is not self or a valid subclass, raises ActiveRecord::SubclassNotFound
         # If this is a StrongParameters hash, and access to inheritance_column is not permitted,
         # this will ignore the inheritance column and return nil
-        def subclass_from_attrs(attrs)
+        def subclass_from_attributes?(attrs)
           active_authorizer[:default].deny?(inheritance_column) ? nil : super
         end
       end
     end
   end
-end
\ No newline at end of file
+end
Fix subclass verification of inheritance column with protected attrs

After rails/rails@8a<I>f<I>b<I>e<I>bae<I>c0ab3dd9e<I>cb<I>, the
implementation that builds the subclass based on the inheritance column
attribute has changed to fix a bug, and the method name followed this
change.

This updates the method name to match Rails current implementation in
branches 4-0, 4-1 and master.