Permalink
Browse files

install script

  • Loading branch information...
1 parent 58158fc commit 096f4ea8fa8bd5372789c0c07da361bd63760c4f @txemagon committed Jun 23, 2011
Showing with 2 additions and 3 deletions.
  1. +1 −2 lib/generators/i18nize/create_generator.rb
  2. +1 −1 lib/generators/i18nize/create_generator.rb~
@@ -3,7 +3,6 @@ module Generators
class CreateGenerator < Rails::Generators::Base
source_root File.expand_path("../templates", __FILE__)
- source_root File.expand_path("../../../", __FILE__)
desc <<DESC
Creates the basic methods that are based on the views. Remember to add support for directories in your config files.
@@ -12,7 +11,7 @@ class CreateGenerator < Rails::Generators::Base
DESC
def helper_config
- directory("templates", "lib/templates")
+ directory(File.expand_path("../../../templates", __FILE__), "lib/templates")
copy_file("application_helper.rb", "app/helpers/application_i18n_helper.rb")
end
@@ -12,7 +12,7 @@ Creates the basic methods that are based on the views. Remember to add support f
DESC
def helper_config
- directory("templates", "/lib/templates")
+ directory("templates", "lib/templates")
copy_file("application_helper.rb", "app/helpers/application_i18n_helper.rb")
end

0 comments on commit 096f4ea

Please sign in to comment.