obviously you want to mix in the module Searchable into your
ActiveRecord::Base. by using extend the methods inside the Searchable-
module become class methods (with "include" they would become instance
methods).

> My question is why do we define such a class in environment.rb
> What is the actual purpose of this
since i don't know your code, i can't really tell you, what you are
doing (or trying to do).
besides: shouldn't you know that yourself?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to