referthis 0.5.34 → 0.5.37
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/referthis.rb +1 -1
- metadata +1 -1
data/lib/referthis.rb
CHANGED
@@ -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
|
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)
|