Skip to content

Commit

Permalink
Add environment dependency to site_admin task
Browse files Browse the repository at this point in the history
  • Loading branch information
tpendragon committed Feb 19, 2018
1 parent 2dfcb33 commit a53cdc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/dev.rake
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ if Rails.env.development? || Rails.env.test?

namespace :pomegranate do
desc 'Make first user a site admin'
task :site_admin do
task site_admin: :environment do
user = User.first
user.roles.create role: 'admin', resource: Spotlight::Site.instance
puts "Made #{user} a site admin!"
Expand Down

0 comments on commit a53cdc2

Please sign in to comment.