Fix failing test: option format_key with root option

This commit is contained in:
Vladimir Lyzo
2014-08-13 11:26:16 +04:00
parent c4e6cd48b6
commit adcea6aaf0
2 changed files with 3 additions and 2 deletions

View File

@@ -126,7 +126,7 @@ end
root
end
key_format == :lower_camel ? key.camelize(:lower) : key
key_format == :lower_camel && key.present? ? key.camelize(:lower) : key
end
def attributes