diff options
author | Uģis Ozols <ugis.ozolss@gmail.com> | 2012-11-27 15:11:30 +0200 |
---|---|---|
committer | Uģis Ozols <ugis.ozolss@gmail.com> | 2012-11-27 15:11:30 +0200 |
commit | 9fb4803016fbc2108b9446b441dc40d8189c9cfb (patch) | |
tree | 9e0083171bbc97e1d81aee13aae384557594b8d6 | |
parent | d7f8aabf71d95fe651d66836b600deee6f6e8880 (diff) | |
download | rails-9fb4803016fbc2108b9446b441dc40d8189c9cfb.tar.gz rails-9fb4803016fbc2108b9446b441dc40d8189c9cfb.tar.bz2 rails-9fb4803016fbc2108b9446b441dc40d8189c9cfb.zip |
Fix Strong Parameters docs.
It's only possible to inherit from ActiveRecord::Base and not include
it.
-rw-r--r-- | actionpack/lib/action_controller/metal/strong_parameters.rb | 3 |
1 files changed, 1 insertions, 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 # <tt>ActionController::Parameters.permit_all_parameters</tt>. # - # class Person - # include ActiveRecord::Base + # class Person < ActiveRecord::Base # end # # params = ActionController::Parameters.new(name: 'Francesco') |