Class: Rolemodel::SoftDestroyableGenerator
- Inherits:
-
GeneratorBase
- Object
- Rails::Generators::Base
- GeneratorBase
- Rolemodel::SoftDestroyableGenerator
- Defined in:
- lib/generators/rolemodel/soft_destroyable/soft_destroyable_generator.rb
Instance Method Summary collapse
Instance Method Details
#add_concern ⇒ Object
5 6 7 |
# File 'lib/generators/rolemodel/soft_destroyable/soft_destroyable_generator.rb', line 5 def add_concern copy_file 'soft_destroyable.rb', 'app/models/concerns/soft_destroyable.rb' end |
#add_shared_example ⇒ Object
9 10 11 |
# File 'lib/generators/rolemodel/soft_destroyable/soft_destroyable_generator.rb', line 9 def add_shared_example copy_file 'soft_destroyable_behavior.rb', 'spec/support/shared_examples/soft_destroyable_behavior.rb' end |