lib/html_to.rb in html_to-1.1.2 vs lib/html_to.rb in html_to-1.1.3
- old
+ new
@@ -102,10 +102,10 @@
def self.included(base)
base.attr_accessor :html_to_skip_meta_image_generate
base.instance_eval do
alias_method :create_meta_image!, :html_to_create_meta_image! unless method_defined? :create_meta_images!
end
- base.after_commit :html_to_create_meta_image!, unless: :html_to_skip_meta_image_generate
+ base.after_save_commit :html_to_create_meta_image!, unless: :html_to_skip_meta_image_generate
end
def html_to_create_meta_image!
share_images_settings = [self.class.html_to_image_settings, *self.class.html_to_image_settings.additional_images.values].flatten
share_images_settings.each do |image_settings|