app/models/redditor/video_block.rb in redditor-0.1.17 vs app/models/redditor/video_block.rb in redditor-0.1.20
- old
+ new
@@ -6,9 +6,13 @@
validates :youtube, length: { is: 11 }, youtube: true
belongs_to :page, class_name: "::Redditor::Page", touch: true
+ def to_partial_path
+ 'redditor/video_block'
+ end
+
def self.model_name
ActiveModel::Name.new(self, nil, 'VideoBlock')
end
end
end
\ No newline at end of file