Skip to content

Instantly share code, notes, and snippets.

@matthuhiggins
Created May 28, 2010 06:48
Show Gist options
  • Save matthuhiggins/416846 to your computer and use it in GitHub Desktop.
Save matthuhiggins/416846 to your computer and use it in GitHub Desktop.
class ActiveRecord::Base
named_scope :conditions, lambda { |*args| {:conditions => args} }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment