diff --git a/app/models/post.rb b/app/models/post.rb index 1c535fe0..10153f71 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -31,7 +31,7 @@ class Post def find_layout(path) File.foreach(path).lazy.grep(/^layout: /).take(1).first&.split(' ')&.last&.tr('\'', '')&.tr('"', '')&.to_sym rescue Errno::ENOENT => e - ExceptionNotifier.notify(e) + ExceptionNotifier.notify_exception(e, data: { path: path }) :post end