mwpastore on namespace-dsl
wip (compare)
mwpastore on master
Update Sinatra dependencies (compare)
mwpastore on v1.3.0
mwpastore on master
Bump to 1.3.0 (compare)
mwpastore on master
Deprecate `sinja {}' in favor o… Make sure Rubygems is up-to-dat… Dynamic before_<action> arity and 5 more (compare)
email
serialize_models()
is the right answer, but I'm struggling to see how to pass it the options I want (namely how to exclude a field)
fields
JSON API query parameter (http://jsonapi.org/format/#fetching-sparse-fieldsets)
index(roles: %i[user trusted]) do
Models::User.all
end
index(roles: %i[user trusted]) do
serialize_models Models::User.all, fields: { users: indexable_fields }
end
@body=["{\"data\":[],\"jsonapi\":{\"version\":\"1.0\"},\"included\":[]}"]
serialize_models
directly in the index
sinja route helper