lib/rails/generators/mongoid/observer/observer_generator.rb in mongoid-2.0.2 vs lib/rails/generators/mongoid/observer/observer_generator.rb in mongoid-2.1.0
- old
+ new
@@ -6,10 +6,10 @@
class ObserverGenerator < Base #:nodoc:
check_class_collision :suffix => "Observer"
def create_observer_file
- template 'observer.rb', File.join('app/models', class_path, "#{file_name}_observer.rb")
+ template 'observer.rb.tt', File.join('app/models', class_path, "#{file_name}_observer.rb")
end
hook_for :test_framework
end
end