Alex Fedorov
Alex Fedorov
Though the problem awaits here: ``` crystal class Post < ActiveRecord::Model # at this point you get compile error, since `User` is not defined yet belongs_to User end class User...
Since it is macro, we can fix it by not using `User` right away, but rather define new method inside of macro: ``` crystal macro belongs_to(model) {% model_name = model.id.stringify.gsub(/.+:/,...
Maybe `belongs_to` (and friends) could provide optional parameter for name of the method to help user avoid conflicts, like: ``` crystal macro belongs_to(model, method_name = nil) {% unless method_name %}...
WDYT @sdogruyol ?
Ok then. There is a plan for public interface now :+1: Now on the internals. Currently all the heavy lifting (actual querying) is done by `Adapter` protocol implementations. You can...
No problem :)
Hi @MuhammetDilmac Could you please provide a stacktrace for this exception?
Could you please run it in a crystal compiled from the source? This way, there will be useful symbols instead of ???. Muhammet Dilmaç [email protected] schrieb am Sa., 25. Juni...
@sdogruyol ### Using Data Structures in Practice Basically, data structures are just there to map data from data storage (database or smth else) to the memory and vice versa. They...
Will write an example for domain object soon.