Skip to content

Instantly share code, notes, and snippets.

@fl00r
Created May 3, 2011 15:07
Show Gist options
  • Save fl00r/953497 to your computer and use it in GitHub Desktop.
Save fl00r/953497 to your computer and use it in GitHub Desktop.
module ActiveRecord
module QueryMethods
alias :old_where :where
def where(opts, *rest)
opts.merge!({:locale => :ru})
old_where(opts, *rest)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment