From 9fb4803016fbc2108b9446b441dc40d8189c9cfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?U=C4=A3is=20Ozols?= Date: Tue, 27 Nov 2012 15:11:30 +0200 Subject: Fix Strong Parameters docs. It's only possible to inherit from ActiveRecord::Base and not include it. --- actionpack/lib/action_controller/metal/strong_parameters.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/actionpack/lib/action_controller/metal/strong_parameters.rb b/actionpack/lib/action_controller/metal/strong_parameters.rb index da640502a2..99a4e312cf 100644 --- a/actionpack/lib/action_controller/metal/strong_parameters.rb +++ b/actionpack/lib/action_controller/metal/strong_parameters.rb @@ -70,8 +70,7 @@ module ActionController # Also, sets the +permitted+ attribute to the default value of # ActionController::Parameters.permit_all_parameters. # - # class Person - # include ActiveRecord::Base + # class Person < ActiveRecord::Base # end # # params = ActionController::Parameters.new(name: 'Francesco') -- cgit v1.2.3