app/controllers/mailkick/subscriptions_controller.rb in mailkick-0.3.1 vs app/controllers/mailkick/subscriptions_controller.rb in mailkick-0.4.0
- old
+ new
@@ -29,14 +29,10 @@
email: @email,
user: @user,
list: @list
}
rescue ActiveSupport::MessageVerifier::InvalidSignature
- if Rails::VERSION::MAJOR >= 5
- render plain: "Subscription not found", status: :bad_request
- else
- render text: "Subscription not found", status: :bad_request
- end
+ render plain: "Subscription not found", status: :bad_request
end
def opted_out?
Mailkick.opted_out?(@options)
end