Permalink
Browse files

Fix Strong Parameters docs.

It's only possible to inherit from ActiveRecord::Base and not include
it.
  • Loading branch information...
1 parent d7f8aab commit 9fb4803016fbc2108b9446b441dc40d8189c9cfb @ugisozols ugisozols committed Nov 27, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 actionpack/lib/action_controller/metal/strong_parameters.rb
@@ -70,8 +70,7 @@ class Parameters < ActiveSupport::HashWithIndifferentAccess
# Also, sets the +permitted+ attribute to the default value of
# <tt>ActionController::Parameters.permit_all_parameters</tt>.
#
- # class Person
- # include ActiveRecord::Base
+ # class Person < ActiveRecord::Base
# end
#
# params = ActionController::Parameters.new(name: 'Francesco')

0 comments on commit 9fb4803

Please sign in to comment.