Sha256: 5d9b97282b832291873989a8931340adb01fa1da47e1f6efc4f711a997175a34
Contents?: true
Size: 560 Bytes
Versions: 2
Compression:
Stored size: 560 Bytes
Contents
# frozen_string_literal: true class <%= @scope_prefix %>SessionsController < Kingsman::SessionsController # before_action :configure_sign_in_params, only: [:create] # GET /resource/sign_in # def new # super # end # POST /resource/sign_in # def create # super # end # DELETE /resource/sign_out # def destroy # super # end # protected # If you have extra params to permit, append them to the sanitizer. # def configure_sign_in_params # kingsman_parameter_sanitizer.permit(:sign_in, keys: [:attribute]) # end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kingsman-0.1.1 | lib/generators/templates/controllers/sessions_controller.rb |
kingsman-0.1.0 | lib/generators/templates/controllers/sessions_controller.rb |