app/controllers/mailkick/subscriptions_controller.rb in mailkick-0.0.1 vs app/controllers/mailkick/subscriptions_controller.rb in mailkick-0.0.2
- old
+ new
@@ -51,16 +51,16 @@
Mailkick::OptOut.where(email: @email, active: true).empty?
end
end
helper_method :subscribed?
- def subscribe_url
- subscribe_subscription_path(params[:id])
+ def subscribe_url(options = {})
+ subscribe_subscription_path(params[:id], options)
end
helper_method :subscribe_url
- def unsubscribe_url
- unsubscribe_subscription_path(params[:id])
+ def unsubscribe_url(options = {})
+ unsubscribe_subscription_path(params[:id], options)
end
helper_method :unsubscribe_url
end
end