Skip to content

Commit

Permalink
update init.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Fuchs committed Dec 26, 2009
1 parent 86e7569 commit f7b6e74
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 3 additions & 1 deletion init.rb
@@ -1 +1,3 @@
require 'globalize/active_record'
require 'globalize'

ActiveRecord::Base.send(:include, Globalize::ActiveRecord)
2 changes: 1 addition & 1 deletion lib/i18n/missing_translations_log_handler.rb
Expand Up @@ -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
#
Expand Down
4 changes: 1 addition & 3 deletions lib/i18n/missing_translations_raise_handler.rb
Expand Up @@ -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
Expand Down

0 comments on commit f7b6e74

Please sign in to comment.