referthis 0.3.0 → 0.3.1
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, app_name=Rails.application.class.to_s.split(
|
13
|
+
def self.url(endpoints, user_current_id, url, referrer_name, app_name=Rails.application.class.to_s.split('::').first)
|
14
14
|
self.generate_referral(endpoints, user_current_id, url, referrer_name, app_name)
|
15
15
|
end
|
16
16
|
end
|