Skip to content

Instantly share code, notes, and snippets.

@stympy
Created October 25, 2010 21:20
Show Gist options
  • Select an option

  • Save stympy/645793 to your computer and use it in GitHub Desktop.

Select an option

Save stympy/645793 to your computer and use it in GitHub Desktop.

Revisions

  1. stympy created this gist Oct 25, 2010.
    6 changes: 6 additions & 0 deletions subscription_plan.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    Rails.application.config.to_prepare do
    SubscriptionPlan.class_eval do
    scope :active, where(:active => true)
    scope :by_price, order(:amount)
    end
    end