Re: [Rails] relation between lib and model components

2015-04-21 Thread Emmanuel Abia
I don't think it is necessary creating any file in /lib since you want to run a process on just one model. Have your process method created in the model class : self.process_method() On Apr 21, 2015 3:35 PM, "Ben Amsalem" wrote: > Hi all, > I'm going to create a process that needs to execute a qu

[Rails] relation between lib and model components

2015-04-21 Thread Ben Amsalem
Hi all, I'm going to create a process that needs to execute a query (via one of my model classes) and then create a file according to the result. I think I'll locate this process class in my /lib folder, but it means that the lib will have to "know" the relevant model method that executes the qu