Class: Hyrax::ActiveEncode::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Hyrax::ActiveEncode::InstallGenerator
- Defined in:
- lib/generators/hyrax/active_encode/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#enhance_file_set ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/generators/hyrax/active_encode/install_generator.rb', line 9 def enhance_file_set insert_into_file 'app/models/file_set.rb', after: 'include ::Hyrax::FileSetBehavior' do "\n" \ " include Hyrax::ActiveEncode::FileSetBehavior\n" \ " self.indexer = Hyrax::ActiveEncode::ActiveEncodeIndexer" end end |