app/helpers/theme_helper.rb in woople-theme-0.3.8 vs app/helpers/theme_helper.rb in woople-theme-0.3.9
- old
+ new
@@ -8,11 +8,11 @@
def content_items(items, presenter = nil)
collection = ThemePresentation.wrap_collection(items, ContentItemPresenter, presenter)
render partial: 'woople-theme/content_item', collection: collection
end
- def video_modal(video, presenter = nil)
- video = ThemePresentation.wrap(video, presenter)
+ def video_modal(video)
+ video = ThemePresentation.wrap(video, WoopleTheme::VideoPresenter)
render 'woople-theme/video_modal', video: video
end
def content_item_header
render partial: 'woople-theme/content_item_header'