lib/controllers/generate.rb in evertils-0.1.2 vs lib/controllers/generate.rb in evertils-0.1.3

- old
+ new

@@ -33,9 +33,13 @@ def weekly if @model.note_exists Notify.error("There's already a log for this week!") end + if !Date.today.monday? + Notify.error("Sorry, you can only create new weekly logs on Mondays") + end + @model.create_note end # generate monthly notes def monthly \ No newline at end of file