diff options
Diffstat (limited to 'lib/sms_fu/sms_fu.rb')
| -rw-r--r-- | lib/sms_fu/sms_fu.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sms_fu/sms_fu.rb b/lib/sms_fu/sms_fu.rb index a65f419..26b8649 100644 --- a/lib/sms_fu/sms_fu.rb +++ b/lib/sms_fu/sms_fu.rb @@ -99,8 +99,8 @@ module SMSFu end def template_directory - directory = defined?(Rails) ? "#{RAILS_ROOT}/config" : "#{File.dirname(__FILE__)}/../../templates" - if (defined?(Rails) && Rails.env == 'test') || (defined?(RAILS_ENV) && RAILS_ENV == 'test)') + directory = defined?(Rails) ? "#{Rails.root}/config" : "#{File.dirname(__FILE__)}/../../templates" + if (defined?(Rails) && Rails.env == 'test') "#{File.dirname(__FILE__)}/../../templates" else directory @@ -109,4 +109,4 @@ module SMSFu end end -class SMSFuException < StandardError; end
\ No newline at end of file +class SMSFuException < StandardError; end |
