lib/controllers/generate.rb in evertils-0.3.1.1 vs lib/controllers/generate.rb in evertils-0.3.1.2

- old
+ new

@@ -49,11 +49,11 @@ body += to_enml($config.custom_sections[NOTEBOOK_WEEKLY]) if $config.custom_sections[NOTEBOOK_WEEKLY] parent_notebook = NOTEBOOK_WEEKLY if !@force if !Date.today.monday? - Notify.error("Sorry, you can only create new weekly logs on Mondays") + Notify.error("Sorry, you can only create new weekly logs on Mondays", {}) end end note = @model.create_note(title, body, parent_notebook) @@ -76,10 +76,10 @@ note.tag(month_tag.prop(:name)) end # generate monthly task summary templates def mts - Notify.error("Name argument is required") if @name.nil? + Notify.error("Name argument is required", {}) if @name.nil? title = "#{@name} #{DateTime.now.strftime('%m-%Y')}" body = @format.template_contents body += to_enml($config.custom_sections[NOTEBOOK_MTS]) if $config.custom_sections[NOTEBOOK_MTS] parent_notebook = NOTEBOOK_MTS