Skip to content

Instantly share code, notes, and snippets.

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