Open sinisterchipmunk opened 12 years ago
A slight syntactic update to this idea. Since now we're using CoffeeScript, it's nice and clean to do things like:
class SolarSystem extends Jax.Model
@has_many "planets"
Similar to e.g. the @include
method now in master.
This is still going to happen, but I ran out of time for this cycle. Pushed back to v3.1.
Currently, if a model is associated with another model, data must be parsed explicitly:
It would be very helpful to establish ActiveRecord-like relations for models. Example JS:
This way, Jax could automatically convert an associated model's data into its corresponding instance.