Ruby on Rails Monday, March 25, 2013



On Sunday, 24 March 2013 12:59:00 UTC-4, Paulo Ribeiro wrote:

Thx for your reply. I want to make the models more light. I want to make models what will only access the database (CRUD), without callbacks and the other stuffs it loads.


Not to be rude, but this is still "what" you want to do. 

*Why* are you trying to make the models "light"? Are you working in a resource-constrained environment? Splitting off the callback system is going to break plenty of stuff - for instance, :dependent => :destroy on associations is implemented with a callback. Would it be sufficient to simply not use features you don't want?

--Matt Jones

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/Y1S0YFkwUyEJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment