1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove frozen_string_literal magic comment from templates

This commit is contained in:
Koichi ITO 2017-08-22 02:51:59 +09:00
parent c20b40c532
commit 7c86c62284
42 changed files with 0 additions and 85 deletions

View file

@ -1,5 +1,3 @@
# frozen_string_literal: true
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.

View file

@ -1,5 +1,3 @@
# frozen_string_literal: true
module ApplicationCable
class Channel < ActionCable::Channel::Base
end

View file

@ -1,5 +1,3 @@
# frozen_string_literal: true
module ApplicationCable
class Connection < ActionCable::Connection::Base
end

View file

@ -1,4 +1,2 @@
# frozen_string_literal: true
module ApplicationHelper
end

View file

@ -1,4 +1,2 @@
# frozen_string_literal: true
class ApplicationJob < ActiveJob::Base
end

View file

@ -1,5 +1,3 @@
# frozen_string_literal: true
class ApplicationMailer < ActionMailer::Base
default from: 'from@example.com'
layout 'mailer'

View file

@ -1,5 +1,3 @@
# frozen_string_literal: true
class ApplicationRecord < ActiveRecord::Base
self.abstract_class = true
end

View file

@ -1,5 +1,3 @@
# frozen_string_literal: true
require_relative 'boot'
<% if include_all_railties? -%>

View file

@ -1,5 +1,3 @@
# frozen_string_literal: true
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
require 'bundler/setup' # Set up gems listed in the Gemfile.

View file

@ -1,5 +1,3 @@
# frozen_string_literal: true
# Load the Rails application.
require_relative 'application'

View file

@ -1,5 +1,3 @@
# frozen_string_literal: true
# Be sure to restart your server when you modify this file.
# ActiveSupport::Reloader.to_prepare do

View file

@ -1,5 +1,3 @@
# frozen_string_literal: true
# Be sure to restart your server when you modify this file.
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.

View file

@ -1,5 +1,3 @@
# frozen_string_literal: true
# Be sure to restart your server when you modify this file.
# Specify a serializer for the signed and encrypted cookie jars.

View file

@ -1,5 +1,3 @@
# frozen_string_literal: true
# Be sure to restart your server when you modify this file.
# Avoid CORS issues when API is called from the frontend app.

View file

@ -1,5 +1,3 @@
# frozen_string_literal: true
# Be sure to restart your server when you modify this file.
# Configure sensitive parameters which will be filtered from the log file.

View file

@ -1,5 +1,3 @@
# frozen_string_literal: true
# Be sure to restart your server when you modify this file.
# Add new inflection rules using the following format. Inflections

View file

@ -1,5 +1,3 @@
# frozen_string_literal: true
# Be sure to restart your server when you modify this file.
# Add new mime types for use in respond_to blocks:

View file

@ -1,5 +1,3 @@
# frozen_string_literal: true
# Puma can serve each request in a thread from an internal thread pool.
# The `threads` method setting takes two numbers: a minimum and maximum.
# Any libraries that use thread pools should be configured to match

View file

@ -1,5 +1,3 @@
# frozen_string_literal: true
Rails.application.routes.draw do
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
end

View file

@ -1,5 +1,3 @@
# frozen_string_literal: true
%w[
.ruby-version
.rbenv-vars

View file

@ -1,5 +1,3 @@
# frozen_string_literal: true
require "test_helper"
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase

View file

@ -1,5 +1,3 @@
# frozen_string_literal: true
require_relative '../config/environment'
require 'rails/test_help'

View file

@ -1,5 +1,3 @@
# frozen_string_literal: true
<% if namespaced? -%>
require_dependency "<%= namespaced_path %>/application_controller"

View file

@ -1,5 +1,3 @@
# frozen_string_literal: true
<% module_namespacing do -%>
module <%= class_name %>Helper
end

View file

@ -1,5 +1,3 @@
# frozen_string_literal: true
begin
require 'bundler/setup'
rescue LoadError

View file

@ -1,5 +1,3 @@
# frozen_string_literal: true
<% if mountable? -%>
<%= camelized_modules %>::Engine.routes.draw do
<% else -%>

View file

@ -1,5 +1,3 @@
# frozen_string_literal: true
<% if engine? -%>
require "<%= namespaced_name %>/engine"
<% else -%>

View file

@ -1,5 +1,3 @@
# frozen_string_literal: true
<%= wrap_in_modules <<-rb.strip_heredoc
class Engine < ::Rails::Engine
#{mountable? ? ' isolate_namespace ' + camelized_modules : ' '}

View file

@ -1,5 +1,3 @@
# frozen_string_literal: true
<%= wrap_in_modules <<-rb.strip_heredoc
class Railtie < ::Rails::Railtie
end

View file

@ -1,3 +1 @@
# frozen_string_literal: true
<%= wrap_in_modules "VERSION = '0.1.0'" %>

View file

@ -1,5 +1,3 @@
# frozen_string_literal: true
# desc "Explaining what the task does"
# task :<%= underscored_name %> do
# # Task goes here

View file

@ -1,5 +1,3 @@
# frozen_string_literal: true
require_relative 'boot'
<% if include_all_railties? -%>

View file

@ -1,5 +1,3 @@
# frozen_string_literal: true
# Set up gems listed in the Gemfile.
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../Gemfile', __dir__)

View file

@ -1,5 +1,3 @@
# frozen_string_literal: true
Rails.application.routes.draw do
mount <%= camelized_modules %>::Engine => "/<%= name %>"
end

View file

@ -1,5 +1,3 @@
# frozen_string_literal: true
require 'test_helper'
class <%= camelized_modules %>::Test < ActiveSupport::TestCase

View file

@ -1,5 +1,3 @@
# frozen_string_literal: true
require "test_helper"
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase

View file

@ -1,5 +1,3 @@
# frozen_string_literal: true
require 'test_helper'
class NavigationTest < ActionDispatch::IntegrationTest
@ -7,4 +5,3 @@ class NavigationTest < ActionDispatch::IntegrationTest
# assert true
# end
end

View file

@ -1,5 +1,3 @@
# frozen_string_literal: true
require_relative "<%= File.join('..', options[:dummy_path], 'config/environment') -%>"
<% unless options[:skip_active_record] -%>
ActiveRecord::Migrator.migrations_paths = [File.expand_path("../<%= options[:dummy_path] -%>/db/migrate", __dir__)]

View file

@ -1,5 +1,3 @@
# frozen_string_literal: true
<% if namespaced? -%>
require_dependency "<%= namespaced_path %>/application_controller"

View file

@ -1,5 +1,3 @@
# frozen_string_literal: true
<% if namespaced? -%>
require_dependency "<%= namespaced_path %>/application_controller"

View file

@ -1,5 +1,3 @@
# frozen_string_literal: true
namespace :<%= file_name %> do
<% actions.each do |action| -%>
desc "TODO"

View file

@ -383,7 +383,6 @@ class ActionsTest < Rails::Generators::TestCase
File.open(route_path, "wb") { |file| file.write(content) }
routes = <<-F
# frozen_string_literal: true
Rails.application.routes.draw do
root 'welcome#index'
end
@ -394,7 +393,6 @@ F
action :route, "resources :product_lines"
routes = <<-F
# frozen_string_literal: true
Rails.application.routes.draw do
resources :product_lines
root 'welcome#index'