mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 11:47:56 +01:00
Add Boards
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
class ApplicationController < ActionController::Base
|
||||
before_action :configure_permitted_parameters, if: :devise_controller?
|
||||
before_action :load_boards
|
||||
|
||||
protected
|
||||
|
||||
@@ -7,4 +8,8 @@ class ApplicationController < ActionController::Base
|
||||
devise_parameter_sanitizer.permit(:sign_up, keys: [:full_name])
|
||||
devise_parameter_sanitizer.permit(:account_update, keys: [:full_name])
|
||||
end
|
||||
|
||||
def load_boards
|
||||
@boards = Board.all.only(:id, :name)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user