Automatic Injection

Feb 22, 2013 at 2:06 PM
is there a way to automatically inject without using model.injectFrom() everytime?

the reason for this is all my models have id property that look like this"users/123" and i want to strip the part before "/"
and currently i have to do it every time i return the model to view, and i want this to happen globally and automatically.

thanks in advanced.