Skip to content

Commit

Permalink
removing the maximum donation
Browse files Browse the repository at this point in the history
  • Loading branch information
erik committed Jun 27, 2011
1 parent e57e830 commit 883b490
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/pitch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def unapproved
named_scope :without_a_story, :conditions => 'news_items.id NOT IN (SELECT news_item_id FROM news_items WHERE news_items.type = "Story" AND news_items.status = "published")'
#named_scope :browsable, :include => :user, :conditions => "news_items.status != 'unapproved'"

MAX_PER_USER_DONATION_PERCENTAGE = 0.20
MAX_PER_USER_DONATION_PERCENTAGE = 1.00

def self.all_active_reporters
self.without_a_story.find(:all, :conditions=>"status='active'", :include=>:user, :group=>"user_id").map(&:user)
Expand Down

0 comments on commit 883b490

Please sign in to comment.