Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
no gem no tasks fixes #106
  • Loading branch information
grosser committed Oct 5, 2013
1 parent bb0745e commit 19d9ed6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/gettext_i18n_rails/railtie.rb
Expand Up @@ -6,7 +6,12 @@ class Railtie < ::Rails::Railtie
config.gettext_i18n_rails.use_for_active_record_attributes = true

rake_tasks do
require 'gettext_i18n_rails/tasks'
begin
gem "gettext", ">= 3.0.2"
require 'gettext_i18n_rails/tasks'
rescue Gem::LoadError
# no gettext available, no tasks for you!
end
end

config.after_initialize do |app|
Expand Down

0 comments on commit 19d9ed6

Please sign in to comment.