Class: DataMapper::Generators::ObserverGenerator
- Inherits:
-
Base
- Object
- Rails::Generators::NamedBase
- Base
- DataMapper::Generators::ObserverGenerator
- Defined in:
- lib/generators/data_mapper/observer/observer_generator.rb
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#create_observer_file ⇒ Object
10 11 12 |
# File 'lib/generators/data_mapper/observer/observer_generator.rb', line 10 def create_observer_file template 'observer.rb', File.join('app/models', class_path, "#{file_name}_observer.rb") end |