Class: AppDetection
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- AppDetection
- Defined in:
- app/models/app_detection.rb
Overview
typed: true
Class Method Summary collapse
Class Method Details
.detect_rails_app(global_path) ⇒ Object
4 5 6 |
# File 'app/models/app_detection.rb', line 4 def self.detect_rails_app(global_path) AppDetectionAnalysis.create!(app_detection: self.find_or_create_by!(app_type: 'rails'), jester_os_global_path: global_path, app_type: 'rails') end |