GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: A simple application written in merb to help you manage ad serving across multiple sites
Clone URL: git://github.com/kneath/greed.git
Syntax errors
kneath (author)
Tue Apr 29 18:02:46 -0700 2008
commit  45bab61ace1174c37cbfeea8c44c83cb0f45fcde
tree    ad87597c1a6d4773a19e96c1e6561ea9764c470c
parent  e974a454d79bdb54f44190e343d9eb1469c54faa
...
14
15
16
17
 
18
19
20
...
14
15
16
 
17
18
19
20
0
@@ -14,7 +14,7 @@ class Site < ActiveRecord::Base
0
   def campaigns_allowed
0
     ret = 0
0
     self.spots.each do |spot|
0
- ret += spot.campaign_limit
0
+ ret += (spot.campaign_limit || 0)
0
     end
0
     return ret
0
   end
...
3
4
5
6
 
7
8
9
...
3
4
5
 
6
7
8
9
0
@@ -3,7 +3,7 @@ var rules = {
0
   '#site_selector': function(element){
0
     $(element).addEvent('change', function(){
0
       if (this.value == null || this.value == "") return;
0
- document.location = "/campaigns/show/" + this.value;
0
+ document.location = "/campaigns/show/?site_id=" + this.value;
0
     });
0
   },
0
   

Comments

    No one has commented yet.