faustinoaq changed the topic of #amber to: Welcome to Amber Framework community! | https://amberframework.org | Developer happiness, productivity and bare metal performance | GH: https://github.com/amberframework | Docs: https://docs.amberframework.org | Gitter: https://gitter.im/amberframework/amber | IRC Logger: https://irclog.whitequark.org/amber | Amber::Server.start
feepbot has quit [Ping timeout: 240 seconds]
feepbot has joined #amber
_whitelogger has joined #amber
<FromGitter> <nik736> @bweave Thanks, the serializer by imdrasil looks good! @drujensen Great, with .first or .all it looks like the Query Builder is not used, but for example by doing .limit(20) I am getting back a QueryBuilder object and can't directly convert it to_json. How would I do so? Sorry for all the noob questions and thanks again. :)
<FromGitter> <nik736> I could use .map but I am not sure if this is the correct way. āŽ āŽ Other than that when installing the serializer shard and creating a serializers folder with some files, the files in that folder and the shard itself are not automatically required. I saw in the amber.yml file that `include:` does actually include `- ./src/**/*.cr`, but I am not sure if I have to do some extra steps... manually requiring them
<FromGitter> ... works, but as soon as I remove the require at the top of the file it throws an `Error: undefined constant `... Any help is appreciated, thanks.
<FromGitter> <drujensen> I think `select` is the proper method to use to run the query but it should support the `iterable` functions. The documentation on the query builder needs to be updated.
<FromGitter> <drujensen> The second part of your question looks like a bug
<FromGitter> <drujensen> it should include it automatically
<FromGitter> <drujensen> maybe iā€™m wrong about that. The proper place to put it would be the `./config/application.cr`
<FromGitter> <drujensen> you will find the `src/controllers/**` there. you can add it after the controllers
<FromGitter> <drujensen> I think maybe we removed adding them automatically because the order in which they are included matters.
feepbot has quit [Ping timeout: 240 seconds]
feepbot has joined #amber