Skip to content

Instantly share code, notes, and snippets.

@devhero
Created September 7, 2015 09:51
Show Gist options
  • Select an option

  • Save devhero/17cf4e1020eca6b5d299 to your computer and use it in GitHub Desktop.

Select an option

Save devhero/17cf4e1020eca6b5d299 to your computer and use it in GitHub Desktop.
arel where case insensitive
t = Table.arel_table
Table.where(t[:name].matches('%findme%'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment