module EasySearch::ClassMethods
Public Instance Methods
method_missing(name, *args)
click to toggle source
“Search.users” translates to “User.find” dynamically
# File lib/easy_search/core.rb, line 17 def method_missing(name, *args) # instantiate a new instance of self with # the @klass set to the missing method self.new(name.to_sym) end