From 6be7518b5582e19aa64d000bef9cc12702cba827 Mon Sep 17 00:00:00 2001 From: Nick Date: Tue, 7 Apr 2015 19:30:52 +0700 Subject: [PATCH] quick fix for https://github.com/madebymany/sir-trevor-rails/issues/39 --- lib/sir_trevor_rails/blocks/video_block.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sir_trevor_rails/blocks/video_block.rb b/lib/sir_trevor_rails/blocks/video_block.rb index 759dbb7..11b4d7d 100644 --- a/lib/sir_trevor_rails/blocks/video_block.rb +++ b/lib/sir_trevor_rails/blocks/video_block.rb @@ -2,8 +2,8 @@ module SirTrevorRails module Blocks class VideoBlock < SirTrevorRails::Block def to_partial_path - "sir_trevor/blocks/videos/" << self.source + "sir_trevor/blocks/videos/" << (self.source || 'youtube') end end end -end \ No newline at end of file +end