mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 03:37:56 +01:00
This diff just contains the migration and profile edition. Refers to [This Project Card](https://github.com/riggraz/astuto/projects/1#card-31194036) and #33
16 lines
504 B
Ruby
16 lines
504 B
Ruby
class ApplicationController < ActionController::Base
|
|
before_action :configure_permitted_parameters, if: :devise_controller?
|
|
before_action :load_boards
|
|
|
|
protected
|
|
|
|
def configure_permitted_parameters
|
|
devise_parameter_sanitizer.permit(:sign_up, keys: [:full_name, :notifications_enabled])
|
|
devise_parameter_sanitizer.permit(:account_update, keys: [:full_name, :notifications_enabled])
|
|
end
|
|
|
|
def load_boards
|
|
@boards = Board.select(:id, :name).order(order: :asc)
|
|
end
|
|
end
|