Class: Ripple::Generators::ObserverGenerator

Inherits:
NamedBase
  • Object
show all
Defined in:
lib/rails/generators/ripple/observer/observer_generator.rb

Instance Method Summary collapse

Methods inherited from NamedBase

source_root

Instance Method Details

#create_observer_fileObject



9
10
11
# File 'lib/rails/generators/ripple/observer/observer_generator.rb', line 9

def create_observer_file
  template 'observer.rb.erb', File.join("app/models", class_path, "#{file_name}_observer.rb")
end