Skip to content

Commit

Permalink
Inherit scope
Browse files Browse the repository at this point in the history
There are the case where "rake gettext:find" just fails if the task has another scope.
it should be inherited to accomplish the task properly.
  • Loading branch information
tagoh committed Apr 3, 2015
1 parent d446420 commit 8172900
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/gettext_i18n_rails/tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,6 @@ def gettext_xgettext_options

language_path = File.join(locale_path, language)
mkdir_p(language_path)
b = false
scope = _.scope.reject{|x| b || x == 'gettext' ? b = true : false}.join(':')
scope += ':' unless scope.empty?
ruby($0, "#{scope}gettext:find")
Rake.application.lookup('gettext:find', _.scope).invoke
end
end

0 comments on commit 8172900

Please sign in to comment.