lib/jets/core.rb in jets-1.3.9 vs lib/jets/core.rb in jets-1.4.0

- old
+ new

@@ -20,16 +20,16 @@ # Ensures trailing slash # Useful for appending a './' in front of a path or leaving it alone. # Returns: '/path/with/trailing/slash/' or './' def root + # Do not memoize this method. Turbo mode can change it root = ENV['JETS_ROOT'].to_s root = '.' if root == '' root = "#{root}/" unless root.ends_with?('/') Pathname.new(root) end - memoize :root def env env = ENV['JETS_ENV'] || 'development' ENV['RAILS_ENV'] = ENV['RACK_ENV'] = env ActiveSupport::StringInquirer.new(env) @@ -89,13 +89,14 @@ path =~ %r{/core_ext} || path =~ %r{/default/application} || path =~ %r{/functions} || path =~ %r{/internal/app} || path =~ %r{/jets/stack} || - path =~ %r{/rackup_wrappers} || path =~ %r{/overrides} || + path =~ %r{/rackup_wrappers} || path =~ %r{/reconfigure_rails} || path =~ %r{/templates/} || + path =~ %r{/turbo/project/} || path =~ %r{/version} || path =~ %r{/webpacker} end def class_mappings(class_name)