title: before_find callback in ruby on rails 3
body: <p>My model has a string field, which actually used to store set of words. The order of the words is not important, so I use <code>before_create</code> callback to sort the words for uniqueness of the sets. Consequently I need corresponding callback for searching finding the string, i.e. such a callback would sort words in the incoming string and perform regular search. There is built-in <code>after_find</code> callback, but no before_ counterpart. </p>
  
  <p>What is the best way to implement it? It should be triggered by the same methods as <code>after_find</code>. Or maybe there is another solution instead of callback?</p>
  
  <p><strong>UPDATE:</strong> there is a similar question <a href="https://stackoverflow.com/questions/803532/implementing-an-activerecord-before-find">Implementing an ActiveRecord before_find</a>,
  but I decided to sort the words in the controller before storing in the database.</p>