Permalink
Browse files

Classic Ruby hash syntax for max compatibility.

  • Loading branch information...
1 parent d9e9ac7 commit 83682888378f4be7ae8ea3a2a4338f8be647d6c8 @bjhess committed May 14, 2012
Showing with 10 additions and 10 deletions.
  1. +8 −8 Gemfile.lock
  2. +2 −2 test/nested_parameters_test.rb
View
@@ -1,27 +1,27 @@
PATH
remote: .
specs:
- strong_parameters (0.1.2)
+ strong_parameters (0.1.3)
actionpack (>= 3.2.0)
activemodel (>= 3.2.0)
GEM
remote: http://rubygems.org/
specs:
- actionpack (3.2.2)
- activemodel (= 3.2.2)
- activesupport (= 3.2.2)
+ actionpack (3.2.3)
+ activemodel (= 3.2.3)
+ activesupport (= 3.2.3)
builder (~> 3.0.0)
erubis (~> 2.7.0)
journey (~> 1.0.1)
rack (~> 1.4.0)
- rack-cache (~> 1.1)
+ rack-cache (~> 1.2)
rack-test (~> 0.6.1)
sprockets (~> 2.1.2)
- activemodel (3.2.2)
- activesupport (= 3.2.2)
+ activemodel (3.2.3)
+ activesupport (= 3.2.3)
builder (~> 3.0.0)
- activesupport (3.2.2)
+ activesupport (3.2.3)
i18n (~> 0.6)
multi_json (~> 1.0)
builder (3.0.0)
@@ -80,9 +80,9 @@ class NestedParametersTest < ActiveSupport::TestCase
test "nil param value that should be a hash" do
params = ActionController::Parameters.new({
- book: nil
+ :book => nil
})
- permitted = params.permit book: { genre: :type}
+ permitted = params.permit :book => { :genre => :type}
assert_nil permitted[:book]
end
end

0 comments on commit 8368288

Please sign in to comment.