lib/tasks/spotlight_tasks.rake in blacklight-spotlight-3.1.0 vs lib/tasks/spotlight_tasks.rake in blacklight-spotlight-3.2.0
- old
+ new
@@ -19,10 +19,13 @@
desc 'Create a new exhibit'
task exhibit: :environment do
print 'Exhibit title: '
title = $stdin.gets.chomp
- exhibit = Spotlight::Exhibit.create!(title: title)
+ print 'Exhibit URL slug: '
+ slug = @stdin.gets.chomp
+
+ exhibit = Spotlight::Exhibit.create!({ title: title, slug: slug })
puts 'Who can admin this exhibit?'
u = prompt_to_create_user