referthis 0.5.34 → 0.5.37

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.
Files changed (2) hide show
  1. data/lib/referthis.rb +1 -1
  2. metadata +1 -1
@@ -10,7 +10,7 @@ class ReferThis < Referral
10
10
  system('cp -r ' + File.dirname(File.absolute_path(__FILE__)) + '/db/migrate/* ' + "'" + Rails.root.to_s.split('app/').first + "/db/migrate/'")
11
11
  system('rake db:migrate')
12
12
  end
13
- def self.url(endpoints, user_current_id, url, referrer_name, optional = {:app_name=>Rails.application.class.to_s.split('::').first, :body=>referrer_name + ' has referred you to ' + optional[:app_name] + '! You might be interested in checking out the following: ' + url + '/'})
13
+ def self.url(endpoints, user_current_id, url, referrer_name, optional = {:app_name=>Rails.application.class.to_s.split('::').first})
14
14
  optional[:body].nil? ? optional[:body] = referrer_name + ' has referred you to ' + optional[:app_name] + '! You might be interested in checking out the following: ' + url + '/' : optional[:body]
15
15
  optional[:app_name].nil? ? optional[:app_name] = Rails.application.class.to_s.split('::').first : optional[:app_name]
16
16
  self.generate_referral(endpoints, user_current_id, url, referrer_name, optional)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: referthis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.34
4
+ version: 0.5.37
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: