Created
October 25, 2010 21:20
-
-
Save stympy/645793 to your computer and use it in GitHub Desktop.
Revisions
-
stympy created this gist
Oct 25, 2010 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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