Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

renaming should_filter to should_filter_params

  • Loading branch information...
commit c84e84ded644ef7c6e16e0e41938a5b144c71e64 1 parent faf0f07
@croaky croaky authored
View
4 lib/shoulda/controller/macros.rb
@@ -106,8 +106,8 @@ def should_not_set_the_flash
#
# Example:
#
- # should_filter :password, :ssn
- def should_filter(*keys)
+ # should_filter_params :password, :ssn
+ def should_filter_params(*keys)
keys.each do |key|
should "filter #{key}" do
assert @controller.respond_to?(:filter_parameters),
View
2  test/functional/users_controller_test.rb
@@ -14,7 +14,7 @@ def setup
@user = User.find(:first)
end
- should_filter :ssn
+ should_filter_params :ssn
should_be_restful do |resource|
resource.identifier = :id
Please sign in to comment.
Something went wrong with that request. Please try again.