Sha256: a4481d70e0731bde2720e6e5c0ba3a546fd61f2fa75b674cf7febe8245575f19

Contents?: true

Size: 364 Bytes

Versions: 15

Compression:

Stored size: 364 Bytes

Contents

module PlaidRails
  class WebhooksController < ApplicationController
    skip_before_filter :verify_authenticity_token
    
    def create
      @webhook = PlaidRails::Webhook.create!(webhook_params)
      render json: @webhook
    end
    
    private
    def webhook_params
      params.require(:webhook).permit(:code, :message, :access_token)
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
plaid_rails-0.10.0 app/controllers/plaid_rails/webhooks_controller.rb
plaid_rails-0.9.0 app/controllers/plaid_rails/webhooks_controller.rb
plaid_rails-0.8.0 app/controllers/plaid_rails/webhooks_controller.rb
plaid_rails-0.7.0 app/controllers/plaid_rails/webhooks_controller.rb
plaid_rails-0.6.0 app/controllers/plaid_rails/webhooks_controller.rb
plaid_rails-0.5.0 app/controllers/plaid_rails/webhooks_controller.rb
plaid_rails-0.4.0 app/controllers/plaid_rails/webhooks_controller.rb
plaid_rails-0.3.0 app/controllers/plaid_rails/webhooks_controller.rb
plaid_rails-0.2.3 app/controllers/plaid_rails/webhooks_controller.rb
plaid_rails-0.2.2 app/controllers/plaid_rails/webhooks_controller.rb
plaid_rails-0.2.0 app/controllers/plaid_rails/webhooks_controller.rb
plaid_rails-0.1.1 app/controllers/plaid_rails/webhooks_controller.rb
plaid_rails-0.1.0 app/controllers/plaid_rails/webhooks_controller.rb
plaid_rails-0.0.2 app/controllers/plaid_rails/webhooks_controller.rb
plaid_rails-0.0.1 app/controllers/plaid_rails/webhooks_controller.rb