app/helpers/pagelets_helper.rb in pagelet_rails-0.1.3 vs app/helpers/pagelets_helper.rb in pagelet_rails-0.1.4
- old
+ new
@@ -8,12 +8,10 @@
html_opts[:id] ||= pagelet_default_id
html_opts[:class] = classes.join(' ')
html_opts['data-pagelet-container'] = true
-
- encode_data = pagelet_options.original_options.to_h.except('remote')
- html_opts['data-pagelet-options'] = PageletRails::Encryptor.encode(encode_data)
+ html_opts['data-pagelet-options'] = pagelet_encoded_original_options
if pagelet_options.ajax_group
html_opts['data-pagelet-group'] = pagelet_options.ajax_group
end
html_opts