Browse files

Move the generators to the right folder

  • Loading branch information...
1 parent 1c02fcb commit cbd762e9aa79b9966876878b3f077f2022673df5 Rafael Mendonça França committed Nov 28, 2012
View
0 ...ive_record/observer/observer_generator.rb → ...ive_record/observer/observer_generator.rb
File renamed without changes.
View
0 ...ive_record/observer/templates/observer.rb → ...ive_record/observer/templates/observer.rb
File renamed without changes.
View
0 lib/rails/generators/rails/observer/USAGE → lib/generators/rails/observer/USAGE
File renamed without changes.
View
2 ...tors/rails/observer/observer_generator.rb → ...tors/rails/observer/observer_generator.rb
@@ -1,5 +1,3 @@
-require 'rails'
-
module Rails
module Generators
class ObserverGenerator < NamedBase #metagenerator
View
2 .../test_unit/observer/observer_generator.rb → .../test_unit/observer/observer_generator.rb
@@ -8,7 +8,7 @@ class ObserverGenerator < Base
source_root File.expand_path("../templates", __FILE__)
def create_test_files
- template 'unit_test.rb', File.join('test/unit', class_path, "#{file_name}_observer_test.rb")
+ template 'unit_test.rb', File.join('test/unit', class_path, "#{file_name}_observer_test.rb")
end
end
end
View
0 ...test_unit/observer/templates/unit_test.rb → ...test_unit/observer/templates/unit_test.rb
File renamed without changes.

0 comments on commit cbd762e

Please sign in to comment.