Exclude links without any data

This commit is contained in:
Michael Witrant
2016-04-07 19:07:59 +02:00
parent a1826186e5
commit 87bffef945
3 changed files with 4 additions and 1 deletions

View File

@@ -17,6 +17,7 @@ module ActiveModelSerializers
link :yet_another do
"http://example.com/resource/#{object.id}"
end
link(:nil) { nil }
end
def setup