Class: AchievementObserverGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/rails/generators/achievement_observer/achievement_observer_generator.rb

Instance Method Summary collapse

Instance Method Details

#generateObject



8
9
10
11
# File 'lib/rails/generators/achievement_observer/achievement_observer_generator.rb', line 8

def generate
  empty_directory "app/models/"
  template "achievement_observer.rb", "app/models/#{model_name.underscore}_observer.rb"
end