Skip to content

Instantly share code, notes, and snippets.

@liangzan
Created September 24, 2010 07:39
Show Gist options
  • Save liangzan/595001 to your computer and use it in GitHub Desktop.
Save liangzan/595001 to your computer and use it in GitHub Desktop.
# lib/searchlogic/named_scopes/conditions.rb
def create_primary_condition(column, condition)
...
named_scope("#{column}_#{condition}".to_sym, scope_options)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment