From 0cf0468ebf71e58c0d275b804b1b2005cf074b7a Mon Sep 17 00:00:00 2001 From: Alexander Bach Date: Mon, 20 Jul 2015 14:06:57 +0200 Subject: [PATCH] Add default value for send_notification --- app/models/journal_manager.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/models/journal_manager.rb b/app/models/journal_manager.rb index f11baf6bee..8d83417989 100644 --- a/app/models/journal_manager.rb +++ b/app/models/journal_manager.rb @@ -28,7 +28,9 @@ #++ class JournalManager - cattr_accessor :send_notification, instance_accessor: false + cattr_accessor :send_notification, instance_accessor: false do + true + end def self.is_journalized?(obj) not obj.nil? and obj.respond_to? :journals