Skip to content

Instantly share code, notes, and snippets.

@deepakprasanna
Created March 7, 2011 20:20
Show Gist options
  • Save deepakprasanna/859131 to your computer and use it in GitHub Desktop.
Save deepakprasanna/859131 to your computer and use it in GitHub Desktop.
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