Sha256: 2d936d00ca72c17fdacc7629901cffa7c59a524b8484befe34cc84aa33242e1d

Contents?: true

Size: 470 Bytes

Versions: 6

Compression:

Stored size: 470 Bytes

Contents

class Users::RegistrationsController < Janus::RegistrationsController
  respond_to :html

  def after_sign_up_url(user)
    user_url
  end

  def user_params
    if params.respond_to?(:permit)
      # Rails 4 (or Rails 3 + strong_parameters)
      params.require(:user).permit(:email, :current_password, :password, :password_confirmation)
    else
      # Rails 3
      params[:user].slice(:email, :current_password, :password, :password_confirmation)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
janus-0.10.1 test/rails_app/app/controllers/users/registrations_controller.rb
janus-0.10.0 test/rails_app/app/controllers/users/registrations_controller.rb
janus-0.9.1 test/rails_app/app/controllers/users/registrations_controller.rb
janus-0.9.0 test/rails_app/app/controllers/users/registrations_controller.rb
janus-0.8.1 test/rails_app/app/controllers/users/registrations_controller.rb
janus-0.8.0 test/rails_app/app/controllers/users/registrations_controller.rb