Sha256: 5c69583d9bd925bcf1af211637c56d0cd357b354b02cbdf4badebd717e8a8329
Contents?: true
Size: 461 Bytes
Versions: 2
Compression:
Stored size: 461 Bytes
Contents
require 'rails/generators' class TestAppGenerator < Rails::Generators::Base source_root File.expand_path("../../../../support", __FILE__) # Inject call to Hydra::BatchEdit.add_routes in config/routes.rb def inject_routes insert_into_file "config/routes.rb", :after => '.draw do' do "\n # Add BatchEdit routes." "\n Hydra::BatchEdit.add_routes(self)" end end def copy_test_models copy_file "app/models/sample.rb" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hydra-batch-edit-0.0.4 | spec/support/lib/generators/test_app_generator.rb |
hydra-batch-edit-0.0.3 | spec/support/lib/generators/test_app_generator.rb |