class ActionController::Base
Public Instance Methods
repost(url, params: {}, options: {})
click to toggle source
# File lib/repost/extend_controller.rb, line 5 def repost(url, params: {}, options: {}) status = options.delete(:status) || :ok authenticity_token = form_authenticity_token if ['auto', :auto].include?(options[:authenticity_token]) render html: Repost::Senpai.perform( url, params: params, options: options.merge({ authenticity_token: authenticity_token, autosubmit_nonce: content_security_policy_nonce, }.compact) ).html_safe, status: status end
Also aliased as: redirect_post