Class: Hyrax::ListenersGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Hyrax::ListenersGenerator
- Defined in:
- lib/generators/hyrax/listeners_generator.rb
Instance Method Summary collapse
Instance Method Details
#inject_listener ⇒ Object
11 12 13 |
# File 'lib/generators/hyrax/listeners_generator.rb', line 11 def inject_listener copy_file 'app/listeners/hyrax_listener.rb', 'app/listeners/hyrax_listener.rb' end |
#inject_listener_initialier ⇒ Object
15 16 17 |
# File 'lib/generators/hyrax/listeners_generator.rb', line 15 def inject_listener_initialier copy_file 'config/initializers/publisher.rb', 'config/initializers/publisher.rb' end |