Skip to content

Commit 57caae9

Browse files
committed
Add links config example to initializer.
1 parent 0da3e8d commit 57caae9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/generators/jsonapi/initializer/templates/initializer.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@
4848
# params[:include]
4949
# }
5050
#
51+
# # Set default links.
52+
# # A lambda/proc that will be eval'd in the controller context.
53+
# config.jsonapi_links = ->() { {} }
54+
#
5155
# # Set a default pagination scheme.
5256
# config.jsonapi_pagination = ->(_) { {} }
5357
end

0 commit comments

Comments
 (0)