Replace attr_accessible with strong parameters
This commit is contained in:
parent
3875882172
commit
f0feca800d
28 changed files with 73 additions and 75 deletions
|
@ -84,8 +84,8 @@ private
|
|||
end
|
||||
|
||||
def trace_valid(attrs, result = true)
|
||||
entry = Trace.new(gpx_files(:public_trace_file).attributes, :without_protection => true)
|
||||
entry.assign_attributes(attrs, :without_protection => true)
|
||||
entry = Trace.new(gpx_files(:public_trace_file).attributes)
|
||||
entry.assign_attributes(attrs)
|
||||
assert_equal result, entry.valid?, "Expected #{attrs.inspect} to be #{result}"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue