Files
chatwoot/app/controllers/api/v1/widget/direct_uploads_controller.rb
T
Sojan Jose 9638163b6f fix: resolve RuboCop violations
- Auto-fixed 143 code style violations using rubocop -A
- Fixed RuboCop configuration: moved rubocop-rspec_rails to plugins
- Removed redundant || 0 patterns after .to_i calls
- Fixed RSpec describe class format
- Added remaining naming violations to exclude list for future cleanup
- Reduced violations from 100 to 0 offenses
2025-08-13 17:27:34 +02:00

13 lines
267 B
Ruby

class Api::V1::Widget::DirectUploadsController < ActiveStorage::DirectUploadsController
include WebsiteTokenHelper
before_action :set_web_widget
before_action :set_contact
def create
return if @contact.nil? || @current_account.nil?
super
end
end