Permalink
Browse files

#1731 changing permit_all to permit_all_parameters

  • Loading branch information...
1 parent ccf2cbd commit 111a9bc557e18671f94e6f517aaff150676ab680 @garysweaver committed Oct 19, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 README.rdoc
  2. +1 −1 lib/active_admin/dsl.rb
View
@@ -84,7 +84,7 @@ when trying to view the dashboard (at +/admin+), ensure +app/admin/dashboards.rb
== Strong Parameters
-If you are an early adopter of strong_parameters which will be part of Rails 4 and wish to permit all attributes, you may choose to add `permit_all` to your controller definition to permit all attributes.
+If you are an early adopter of strong_parameters which will be part of Rails 4 and wish to permit all attributes, you may choose to add `permit_all_parameters` to your controller definition to permit all attributes.
== Next Steps
@@ -15,7 +15,7 @@ def initialize(config)
#TODO: replace this temporary hack for strong_parameters, part of Rails 4.0 support
# include patch provided by dpmccabe in https://gist.github.com/3718571
- def permit_all
+ def permit_all_parameters
@config.controller.class_eval("include ActiveAdmin::StrongParametersPatch")
end

0 comments on commit 111a9bc

Please sign in to comment.