Class: Hyrax::ListenersGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/hyrax/listeners_generator.rb

Instance Method Summary collapse

Instance Method Details

#inject_listenerObject



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_initialierObject



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