lib/rails/generators/ripple/observer/observer_generator.rb in ripple-1.0.0.beta vs lib/rails/generators/ripple/observer/observer_generator.rb in ripple-1.0.0.beta2
- old
+ new
@@ -5,10 +5,10 @@
class ObserverGenerator < NamedBase
desc 'Creates an observer for Ripple documents'
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.erb', File.join("app/models", class_path, "#{file_name}_observer.rb")
end
hook_for :test_framework
end
end