Skip to content
Browse files

update init.rb

  • Loading branch information...
1 parent 86e7569 commit f7b6e7499a398021cef03fa0c09fa0b13611c994 @svenfuchs svenfuchs committed Dec 15, 2009
Showing with 5 additions and 5 deletions.
  1. +3 −1 init.rb
  2. +1 −1 lib/i18n/missing_translations_log_handler.rb
  3. +1 −3 lib/i18n/missing_translations_raise_handler.rb
View
4 init.rb
@@ -1 +1,3 @@
-require 'globalize/active_record'
+require 'globalize'
+
+ActiveRecord::Base.send(:include, Globalize::ActiveRecord)
View
2 lib/i18n/missing_translations_log_handler.rb
@@ -5,7 +5,7 @@
#
# E.g.
#
-# require 'globalize/i18n/missing_translations_log_handler
+# require 'globalize/i18n/missing_translations_log_handler'
# I18n.missing_translations_logger = RAILS_DEFAULT_LOGGER
# I18n.exception_handler = :missing_translations_log_handler
#
View
4 lib/i18n/missing_translations_raise_handler.rb
@@ -5,16 +5,14 @@
#
# E.g.
#
-# require 'globalize/i18n/missing_translations_raise_handler
+# require 'globalize/i18n/missing_translations_raise_handler'
# I18n.exception_handler = :missing_translations_raise_handler
module I18n
class << self
def missing_translations_raise_handler(exception, locale, key, options)
raise exception
end
end
-
-# self.exception_handler = :missing_translations_raise_handler
end
I18n.exception_handler = :missing_translations_raise_handler

0 comments on commit f7b6e74

Please sign in to comment.
Something went wrong with that request. Please try again.