lib/refile/backgrounder/activerecord.rb in refile-backgrounder-0.0.2 vs lib/refile/backgrounder/activerecord.rb in refile-backgrounder-0.0.3

- old
+ new

@@ -6,11 +6,9 @@ super name, **options return unless background attr_accessor :_skip_refile_backgrounder after_save(unless: :_skip_refile_backgrounder) do |record| - metadata = record.send(name) - metadata = nil unless metadata.is_a? String worker.perform_later record, name.to_s, metadata end end end