Sha256: aa980afacfa401286a4479ac18c0a74da897f4296c514ed2ba6cd421f473a2ff
Contents?: true
Size: 654 Bytes
Versions: 1
Compression:
Stored size: 654 Bytes
Contents
require 'rails/generators' class BlacklightAdvancedSearchGenerator < Rails::Generators::Base source_root File.expand_path('../templates', __FILE__) require File.expand_path('../assets_generator.rb', __FILE__) def copy_public_assets BlacklightAdvancedSearch::AssetsGenerator.start end def install_local_controller copy_file("advanced_controller.rb", "app/controllers/advanced_controller.rb") end def install_localized_search_form if options[:force] or yes?("Install local search form with advanced link?") copy_file("_search_form.html.erb", "app/views/catalog/_search_form.html.erb") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blacklight_advanced_search-1.2.0 | lib/generators/blacklight_advanced_search/blacklight_advanced_search_generator.rb |