link_to_profile 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -26,7 +26,11 @@ class ProfileLinkGenerator
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def templates_path
|
29
|
-
options[:templates_path] ||=
|
29
|
+
options[:templates_path] ||= relative_path
|
30
|
+
end
|
31
|
+
|
32
|
+
def relative_path
|
33
|
+
File.join(File.dirname(File.expand_path(__FILE__)), 'profile_link_templates.yml')
|
30
34
|
end
|
31
35
|
|
32
36
|
class ArgumentError < StandardError; end
|