blob: 9a5253a0ad99b582769f0c46f792f898cc8af35c (
plain) (
tree)
|
|
module Rails
module Generators
class ObserverGenerator < NamedBase
# TODO Check class collisions
# class_collisions "#{class_name}Observer", "#{class_name}ObserverTest"
def create_observer_file
template 'observer.rb', File.join('app/models', class_path, "#{file_name}_observer.rb")
end
add_and_invoke_test_framework_option!
end
end
end
|