diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-10-14 20:00:57 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-11-28 22:46:49 -0200 |
commit | ccecab3ba950a288b61a516bf9b6962e384aae0b (patch) | |
tree | f00e408870bb2230d7a210e6ae170feef0a80308 /activerecord/lib/rails | |
parent | e38d310912a610ffe8a0944a533bfb9e5950f3a5 (diff) | |
download | rails-ccecab3ba950a288b61a516bf9b6962e384aae0b.tar.gz rails-ccecab3ba950a288b61a516bf9b6962e384aae0b.tar.bz2 rails-ccecab3ba950a288b61a516bf9b6962e384aae0b.zip |
Remove observers and sweepers
They was extracted from a plugin.
See https://github.com/rails/rails-observers
[Rafael Mendonça França + Steve Klabnik]
Diffstat (limited to 'activerecord/lib/rails')
-rw-r--r-- | activerecord/lib/rails/generators/active_record/observer/observer_generator.rb | 15 | ||||
-rw-r--r-- | activerecord/lib/rails/generators/active_record/observer/templates/observer.rb | 4 |
2 files changed, 0 insertions, 19 deletions
diff --git a/activerecord/lib/rails/generators/active_record/observer/observer_generator.rb b/activerecord/lib/rails/generators/active_record/observer/observer_generator.rb deleted file mode 100644 index e7445d03a2..0000000000 --- a/activerecord/lib/rails/generators/active_record/observer/observer_generator.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'rails/generators/active_record' - -module ActiveRecord - module Generators # :nodoc: - 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") - end - - hook_for :test_framework - end - end -end diff --git a/activerecord/lib/rails/generators/active_record/observer/templates/observer.rb b/activerecord/lib/rails/generators/active_record/observer/templates/observer.rb deleted file mode 100644 index eaa256a9bd..0000000000 --- a/activerecord/lib/rails/generators/active_record/observer/templates/observer.rb +++ /dev/null @@ -1,4 +0,0 @@ -<% module_namespacing do -%> -class <%= class_name %>Observer < ActiveRecord::Observer -end -<% end -%> |