readonly_attributes are now a Set instead of Array
This commit is contained in:
parent
404d1f4ee8
commit
3c0aea25fa
|
@ -29,7 +29,7 @@ module Shoulda # :nodoc:
|
|||
"is not read-only"
|
||||
else
|
||||
@failure_message = "#{class_name} is making " <<
|
||||
"#{readonly_attributes.to_sentence} " <<
|
||||
"#{readonly_attributes.to_a.to_sentence} " <<
|
||||
"read-only, but not #{@attribute}."
|
||||
end
|
||||
false
|
||||
|
|
Loading…
Reference in New Issue