app/model/suj/commentable/comment.rb
# Override destroy method so it verifies if the client is enabled or not, If
# enabled this method will only disable it and if disabled then this method
# will destroy it.
Override destroy method so it verifies if the client is enabled or not, If
enabled this method will only disable it and if disabled then this method
will destroy it.
Override destroy method so it verifies if the client is enabled or not If enabled this method will only disable it and if disabled then this method will destroy it .
def destroy
        if enabled?
          self.disable!
        else
          super
        end
      end
def destroy if enabled? self . disable! else super end end
Override destroy method so it verifies if the client is enabled or not, If
enabled this method will only disable it and if disabled then this method
will destroy it.
Override destroy method so it verifies if the client is enabled or not If enabled this method will only disable it and if disabled then this method will destroy it .