[Rails] Auto scope plugin
approval
A plugin that lets you easily define model scopes to call as methods.\r\n\r\nAn example:\r\n\r\nclass Testimonial < ActiveRecord::Base\r\n auto_scope \\\r\n :approved => {\r\n :find => {:conditions => [\"approved_at < ?\", proc {Time.now}]},\r\n :create => {:approved_at => proc {Time.now}}},\r\n :unapproved => {\r\n :find => {:conditions => \"approved_at IS NULL\"},\r\n :create => {:approved_at => nil}}\r\nend