Sha256: 02c7d2004b3eae1c4a9f2f256cfc07a39c6b5085f89396ca3472c28d76693168

Contents?: true

Size: 273 Bytes

Versions: 10

Compression:

Stored size: 273 Bytes

Contents

# frozen_string_literal: true

module SolidusBolt
  class AccountsController < BaseController
    def create
      Spree::User.find_by!(email: permitted_params[:email])

      head :ok
    end

    private

    def permitted_params
      params[:account]
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
solidus_bolt-0.7.2 app/controllers/solidus_bolt/accounts_controller.rb
solidus_bolt-0.7.1 app/controllers/solidus_bolt/accounts_controller.rb
solidus_bolt-0.7.0 app/controllers/solidus_bolt/accounts_controller.rb
solidus_bolt-0.6.0 app/controllers/solidus_bolt/accounts_controller.rb
solidus_bolt-0.5.0 app/controllers/solidus_bolt/accounts_controller.rb
solidus_bolt-0.4.0 app/controllers/solidus_bolt/accounts_controller.rb
solidus_bolt-0.3.0 app/controllers/solidus_bolt/accounts_controller.rb
solidus_bolt-0.2.0 app/controllers/solidus_bolt/accounts_controller.rb
solidus_bolt-0.1.0 app/controllers/solidus_bolt/accounts_controller.rb
solidus_bolt-0.0.1 app/controllers/solidus_bolt/accounts_controller.rb