mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-12 19:48:36 +00:00
* Improves ruby code in app/models/app_user.rb based on suggestions from Rubocop * Rubocop fixes for more models * Rubocop fixes for controllers
11 lines
272 B
Ruby
11 lines
272 B
Ruby
# frozen_string_literal: true
|
|
|
|
class FoldersController < ApplicationController
|
|
def index
|
|
@folders = Folder.where(organization: @current_user.organization)
|
|
end
|
|
|
|
def create
|
|
Folder.create(name: params[:name], organization: @current_user.organization)
|
|
end
|
|
end
|