ccs_survey_gem 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@
3
3
 
4
4
  class InstantDollarzCampaign < SurveyCampaign
5
5
 
6
- belongs_to :instant_dollarz_category, :foreign_key => 'campaign_category_id'
6
+ belongs_to :instant_dollarz_category, :foreign_key => 'survey_category_id'
7
7
 
8
8
  def url_to_campaign(user_id)
9
9
  "#{self.offer_url}&subid=#{user_id}&sid=#{SiteDetail.get_site_id}&email=clicks@cloudcitysites.com"
@@ -1,6 +1,7 @@
1
1
  # To change this template, choose Tools | Templates
2
2
  # and open the template in the editor.
3
3
 
4
- class InstantDollarzCategory < CampaignCategories
5
- has_many :instant_dollarz_campaigns, :foreign_key => 'campaign_category_id'
4
+ class InstantDollarzCategory < SurveyCategory
5
+ has_many :instant_dollarz_campaigns, :foreign_key => 'survey_category_id'
6
+ # has_many :campaign_categories, :class_name => "InstantDollarzCategory", :foreign_key => 'campaign_category_id'
6
7
  end
@@ -1,7 +1,7 @@
1
1
  class SurveyCampaign < ActiveRecord::Base
2
2
  establish_connection "ccs_central_#{Rails.env}"
3
- belongs_to :campaign_category
4
- acts_as_list
3
+ belongs_to :survey_category
4
+ # acts_as_list
5
5
 
6
6
  def url_to_campaign(user_id)
7
7
  end
@@ -0,0 +1,5 @@
1
+ class SurveyCategory < ActiveRecord::Base
2
+ establish_connection "ccs_central_#{Rails.env}"
3
+
4
+ has_many :survey_campaigns
5
+ end
@@ -1,3 +1,3 @@
1
1
  module CcsSurveyGem
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -4,4 +4,5 @@ javac.classpath=
4
4
  main.file=
5
5
  platform.active=Ruby
6
6
  source.encoding=UTF-8
7
+ src.app.dir=app
7
8
  src.dir=${file.reference.ccs_survey_gem-lib}
@@ -5,6 +5,7 @@
5
5
  <data xmlns="http://www.netbeans.org/ns/ruby-project/1">
6
6
  <name>ccs_survey_gem</name>
7
7
  <source-roots>
8
+ <root id="src.app.dir"/>
8
9
  <root id="src.dir"/>
9
10
  </source-roots>
10
11
  <test-roots/>
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ccs_survey_gem
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - James West
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-01-06 00:00:00 +00:00
18
+ date: 2011-01-07 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -32,10 +32,10 @@ files:
32
32
  - .gitignore
33
33
  - Gemfile
34
34
  - Rakefile
35
- - app/models/campaign_categories.rb
36
35
  - app/models/instant_dollarz_campaign.rb
37
36
  - app/models/instant_dollarz_category.rb
38
37
  - app/models/survey_campaign.rb
38
+ - app/models/survey_category.rb
39
39
  - ccs_survey_gem.gemspec
40
40
  - lib/ccs_survey_gem.rb
41
41
  - lib/ccs_survey_gem/engine.rb
@@ -1,5 +0,0 @@
1
- class CampaignCategories < ActiveRecord::Base
2
- establish_connection "ccs_central_#{Rails.env}"
3
-
4
- has_many :campaign_categories
5
- end