diff options
Diffstat (limited to 'lib/sms_notifier.rb')
| -rw-r--r-- | lib/sms_notifier.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/sms_notifier.rb b/lib/sms_notifier.rb index cf698c8..1dff814 100644 --- a/lib/sms_notifier.rb +++ b/lib/sms_notifier.rb @@ -33,8 +33,13 @@ class SmsNotifier < ActionMailer::Base body['message'] = message end - def template_root - "#{File.dirname(__FILE__)}/../views" + view_path = File.join(File.dirname(__FILE__), '..', 'views') + if public_methods.include?('append_view_path') + self.append_view_path view_path + elsif public_methods.include?("view_paths") + self.view_paths << view_path + else + self.template_root = view_path end end
\ No newline at end of file |
