views:

24

answers:

2

I've found this post:

Array#add_condition But i didn't understand to how implement it in my rails project

How can i do it?

thanks

A: 

Copy and paste that code into a file. There — the method is added to Array. The lib directory would be a good place for it.

Chuck
+1  A: 

Just create add_condition.rb file, paste code snippet from your link and save it in lib directory in your Rails app.

klew