@@ -11,7 +11,6 @@
email: "example2@railstutorial.org",
password: "foobar",
password_confirmation: "foobar",
admin: false,
activated: true,
activated_at: Time.zone.now,
start_date: 1.month.ago)
@@ -20,7 +19,6 @@
email: "example3@railstutorial.org",
password: "foobar",
password_confirmation: "foobar",
admin: false,
activated: true,
activated_at: Time.zone.now,
start_date: 1.month.from_now)
@@ -29,7 +27,15 @@
email: "example4@railstutorial.org",
password: "foobar",
password_confirmation: "foobar",
admin: false,
activated: true,
activated_at: Time.zone.now,
start_date: 4.days.ago)

User.create!(name: "Example User 5",
email: "example5@railstutorial.org",
password: "foobar",
password_confirmation: "foobar",
supervisor: true,
activated: true,
activated_at: Time.zone.now,
start_date: 4.days.ago)
@@ -9,7 +9,7 @@ namespace :abc do
starting_date = currentUser.start_date


if Date.today >= starting_date && Date.today.on_weekday? && !currentUser.admin
if Date.today >= starting_date && Date.today.on_weekday? && !currentUser.admin && !currentUser.supervisor

#if no current posts, retroactively generate thems. if current posts, just generates todays post
if currentUser.posts.count.zero?