ccs_survey_gem 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/app/models/instant_dollarz_campaign.rb +1 -1
- data/app/models/instant_dollarz_category.rb +3 -2
- data/app/models/survey_campaign.rb +2 -2
- data/app/models/survey_category.rb +5 -0
- data/lib/ccs_survey_gem/version.rb +1 -1
- data/nbproject/project.properties +1 -0
- data/nbproject/project.xml +1 -0
- metadata +5 -5
- data/app/models/campaign_categories.rb +0 -5
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
class InstantDollarzCampaign < SurveyCampaign
|
|
5
5
|
|
|
6
|
-
belongs_to :instant_dollarz_category, :foreign_key => '
|
|
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 <
|
|
5
|
-
has_many :instant_dollarz_campaigns, :foreign_key => '
|
|
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
|
data/nbproject/project.xml
CHANGED
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:
|
|
4
|
+
hash: 27
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
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-
|
|
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
|