Sha256: 23978c22134fd05d84f2337d968771fc5a94180d030637b93c5dd549d683b119

Contents?: true

Size: 511 Bytes

Versions: 4

Compression:

Stored size: 511 Bytes

Contents

module SuningPay
  class NotifyController < ::ActionController::Base
    if _process_action_callbacks.any?{|a| a.filter == :verify_authenticity_token}
      # ActionController::Base no longer protects from forgery in Rails 5
      skip_before_filter :verify_authenticity_token
    end

    layout false

    def index
      SuningPay::Notice.create(:content => params[:content], :sign=>params[:sign], :sign_type=>params[:sign_type], :vk_version=>params[:vk_version])
      render text: 'true'
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
suning_pay-0.3.3 app/controllers/notify_controller.rb
suning_pay-0.3.2 app/controllers/notify_controller.rb
suning_pay-0.3.1 app/controllers/notify_controller.rb
suning_pay-0.3.0 app/controllers/notify_controller.rb