app/controllers/commontator/subscriptions_controller.rb~ in commontator-1.0.6 vs app/controllers/commontator/subscriptions_controller.rb~ in commontator-1.1.0
- old
+ new
@@ -19,10 +19,10 @@
# POST /1/unsubscribe
def destroy
raise SecurityTransgression unless @thread.can_subscribe?(@user)
- @thread.errors.add(:base, "You are not subscribed to this thread") \
+ @thread.errors.add(:subscription, "You are not subscribed to this thread") \
unless @thread.unsubscribe(@user)
respond_to do |format|
format.html { redirect_to @thread }
format.js { render :subscribe }