lib/pagelet_rails/concerns/placeholder.rb in pagelet_rails-0.1.7 vs lib/pagelet_rails/concerns/placeholder.rb in pagelet_rails-0.1.8
- old
+ new
@@ -29,10 +29,10 @@
original_pagelet_options: pagelet_encoded_original_options
)
render body: "<!--#include virtual=\"#{path}\" -->"
else
if pagelet_options.remote != :stream
- pagelet_options html: { 'data-widget-url' => url_for(data) }
+ pagelet_options html: { 'data-pagelet-load' => 'true' }
end
default_view = '/layouts/pagelet_rails/loading_placeholder'
view = pagelet_options.placeholder.try(:[], :view).presence || default_view