app/models/inkwell/comment.rb in inkwell-0.1.1 vs app/models/inkwell/comment.rb in inkwell-1.0.4

- old
+ new

@@ -100,14 +100,9 @@ parent_post.users_ids_who_comment_it = ActiveSupport::JSON.encode users_ids_who_comment_it parent_post.save end def processing_a_comment - self.users_ids_who_favorite_it = "[]" - self.users_ids_who_comment_it = "[]" - self.users_ids_who_reblog_it = "[]" - self.save - post_class = Object.const_get ::Inkwell::Engine::config.post_table.to_s.singularize.capitalize post_id_attr = "#{::Inkwell::Engine::config.post_table.to_s.singularize}_id" parent_post = post_class.find self.send post_id_attr user_id = self.send "#{::Inkwell::Engine::config.user_table.to_s.singularize}_id" users_ids_who_comment_it = ActiveSupport::JSON.decode parent_post.users_ids_who_comment_it