Skip to content

Instantly share code, notes, and snippets.

@stympy
Created October 25, 2010 21:20
Show Gist options
  • Save stympy/645793 to your computer and use it in GitHub Desktop.
Save stympy/645793 to your computer and use it in GitHub Desktop.
Extension to SubscriptionPlan provided in the SaaS Rails Kit
Rails.application.config.to_prepare do
SubscriptionPlan.class_eval do
scope :active, where(:active => true)
scope :by_price, order(:amount)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment