lib/active_metadata/persistence/history.rb in active_metadata-0.7.6 vs lib/active_metadata/persistence/history.rb in active_metadata-0.7.7
- old
+ new
@@ -10,10 +10,10 @@
return if ActiveMetadata.skip_history?
self.changes.each do |key, value|
next if ActiveMetadata::CONFIG['history_skip_fields'].include?(key)
ActiveMetadata::History.create! :value => value[1],:document_class => metadata_class, :document_id => metadata_id,:label => key.to_s, :created_by => current_user_id
invalidate_history_cache_for key.to_s
- self.send(:send_notification, key, value[0], value[1], :history_message,current_user_id)
+ self.send(:send_notification, key, value[0], value[1], :history_message, current_user_id)
end
end
def history_for field, order="created_at DESC"
Rails.cache.fetch(history_cache_key(field), :expires_in => ActiveMetadata::CONFIG['cache_expires_in'].minutes) do
\ No newline at end of file