Sha256: 4b02c01ad58f198142a6316d9142c163e149ec4873d71590183086af1715e823
Contents?: true
Size: 311 Bytes
Versions: 2
Compression:
Stored size: 311 Bytes
Contents
require "rails/generators" class JsRoutes::Generators::Base < Rails::Generators::Base protected def application_js_path [ "app/javascript/packs/application.js", "app/javascript/controllers/application.js", ].find do |path| File.exists?(Rails.root.join(path)) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
js-routes-2.2.7 | lib/js_routes/generators/base.rb |
js-routes-2.2.6 | lib/js_routes/generators/base.rb |