Skip to content
This repository

Fix Strong Parameters docs #8338

Merged
merged 1 commit into from over 1 year ago

2 participants

Uģis Ozols Carlos Antonio da Silva
Uģis Ozols

It's only possible to inherit from ActiveRecord::Base and not include it.

Uģis Ozols Fix Strong Parameters docs.
It's only possible to inherit from ActiveRecord::Base and not include
it.
9fb4803
Carlos Antonio da Silva carlosantoniodasilva merged commit 0be0a97 into from November 27, 2012
Carlos Antonio da Silva carlosantoniodasilva closed this November 27, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Nov 27, 2012
Uģis Ozols Fix Strong Parameters docs.
It's only possible to inherit from ActiveRecord::Base and not include
it.
9fb4803
This page is out of date. Refresh to see the latest.
3  actionpack/lib/action_controller/metal/strong_parameters.rb
@@ -70,8 +70,7 @@ class Parameters < ActiveSupport::HashWithIndifferentAccess
70 70
     # Also, sets the +permitted+ attribute to the default value of
71 71
     # <tt>ActionController::Parameters.permit_all_parameters</tt>.
72 72
     #
73  
-    #   class Person
74  
-    #     include ActiveRecord::Base
  73
+    #   class Person < ActiveRecord::Base
75 74
     #   end
76 75
     #
77 76
     #   params = ActionController::Parameters.new(name: 'Francesco')
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.