Skip to content

Instantly share code, notes, and snippets.

@sandsu
Created September 28, 2012 02:48
Show Gist options
  • Save sandsu/3797672 to your computer and use it in GitHub Desktop.
Save sandsu/3797672 to your computer and use it in GitHub Desktop.
class Customer < ActiveRecord::Base
def self.find_by_name(query)
where("name LIKE ?", query)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment