[Rails] Re: Split ActiveRecord::Base model
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.
Em sábado, 23 de março de 2013 12h19min06s UTC-3, Matt Jones escreveu:
--
On Friday, 22 March 2013 09:56:23 UTC-4, Paulo Ribeiro wrote:Hey guys. Im looking to make a model with fewer included modules from ActiveRecord. Basically, i want to include only the modules so it can work fine inside rails and with the methods to access the database.I tried to do it by myself, but i could make it work.Which modules should i include to reach my needs?You've explained *what* you're trying to do, but not *why* - explaining why you want to do this might make it easier to figure out how to make it happen.--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/-/E3pb40qDJEMJ.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home