diff options
Diffstat (limited to 'railties/lib/rails/generators/active_record/observer')
-rw-r--r-- | railties/lib/rails/generators/active_record/observer/observer_generator.rb | 15 | ||||
-rw-r--r-- | railties/lib/rails/generators/active_record/observer/templates/observer.rb | 2 |
2 files changed, 0 insertions, 17 deletions
diff --git a/railties/lib/rails/generators/active_record/observer/observer_generator.rb b/railties/lib/rails/generators/active_record/observer/observer_generator.rb deleted file mode 100644 index c1c0e3f25b..0000000000 --- a/railties/lib/rails/generators/active_record/observer/observer_generator.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'rails/generators/active_record' - -module ActiveRecord - module Generators - class ObserverGenerator < Base - check_class_collision :suffix => "Observer" - - def create_observer_file - template 'observer.rb', File.join('app/models', class_path, "#{file_name}_observer.rb") - end - - hook_for :test_framework - end - end -end diff --git a/railties/lib/rails/generators/active_record/observer/templates/observer.rb b/railties/lib/rails/generators/active_record/observer/templates/observer.rb deleted file mode 100644 index b9a3004161..0000000000 --- a/railties/lib/rails/generators/active_record/observer/templates/observer.rb +++ /dev/null @@ -1,2 +0,0 @@ -class <%= class_name %>Observer < ActiveRecord::Observer -end |