Permalink
Browse files

Replaced text in the file

  • Loading branch information...
ashrafuzzaman committed Jun 19, 2012
1 parent 7c416b4 commit 4090cb6beb3050d3f337e290140a3b3828ac8445
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/generators/i18ize/i18ize_generator.rb
@@ -3,14 +3,14 @@ class I18izeGenerator < Rails::Generators::NamedBase
def replace
files.each do |file|
gsub_file file, /rake/, :green do |match|
match << " no more. Use thor!"
gsub_file file, /rake/i do |match|
"RAKE no more. Use thor!"
end
end
end
private
def files
%w(app/controllers/#{controller_file_name}_controller.rb)
["app/controllers/#{plural_table_name}_controller.rb"]
end
end

0 comments on commit 4090cb6

Please sign in to comment.