Created
March 7, 2011 20:20
-
-
Save deepakprasanna/859131 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Search | |
def self.included(model) | |
model.class_eval do | |
include Search::InstanceMethods | |
extend Search::ClassMethods | |
end | |
end | |
module InstanceMethods | |
end | |
module ClassMethods | |
def interested_fields(*args) | |
end | |
def search | |
puts "hit" | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment