Remove JS extensions

This commit is contained in:
Jose Farias
2024-10-25 15:46:05 -06:00
parent 66fab4d0b0
commit e85f688e35
4 changed files with 0 additions and 20 deletions
-1
View File
@@ -1,5 +1,4 @@
// Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails
import "@hotwired/turbo-rails"
import "extensions"
import "initializers"
import "controllers"
@@ -1,17 +0,0 @@
Array.prototype.toSentence = function() {
const length = this.length
switch (length) {
case 0:
return ""
case 1:
return `${this[0]}.`
case 2:
return `${this[0]} and ${this[1]}.`
default:
return this.map((item, index) => {
const isLast = index === length - 1
return isLast ? `and ${item}.` : item
}).join(", ")
}
}
-1
View File
@@ -1 +0,0 @@
import "extensions/array_extensions"
-1
View File
@@ -7,5 +7,4 @@ pin "@hotwired/stimulus-loading", to: "stimulus-loading.js"
pin_all_from "app/javascript/controllers", under: "controllers"
pin_all_from "app/javascript/helpers", under: "helpers"
pin_all_from "app/javascript/extensions", under: "extensions"
pin_all_from "app/javascript/initializers", under: "initializers"