Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the default model name to Document #1916

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions lib/generators/blacklight/install_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ module Blacklight
class Install < Rails::Generators::Base
source_root File.expand_path('../templates', __FILE__)

argument :model_name, type: :string, default: "user"
argument :controller_name, type: :string, default: "catalog"
argument :document_name, type: :string, default: "solr_document"
argument :search_builder_name, type: :string, default: "search_builder"
argument :solr_version, type: :string, default: "latest"
argument :model_name, type: :string, default: "user"
argument :controller_name, type: :string, default: "catalog"
argument :document_name, type: :string, default: 'document'
argument :search_builder_name, type: :string, default: "search_builder"
argument :solr_version, type: :string, default: "latest"

class_option :devise, type: :boolean, default: false, aliases: "-d", desc: "Use Devise as authentication logic."
class_option :marc, type: :boolean, default: false, aliases: "-m", desc: "Generate MARC-based demo."
Expand Down
2 changes: 1 addition & 1 deletion lib/generators/blacklight/test_support_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def alternate_controller
end

def solr_document_config
insert_into_file 'app/models/solr_document.rb', after: "include Blacklight::Solr::Document" do
insert_into_file 'app/models/document.rb', after: "include Blacklight::Solr::Document" do
<<-EOF

field_semantics.merge!(
Expand Down