Skip to content

Commit cf423f8

Browse files
committed
Add notes for future selves
Once RubyGems 2.5.0 is required, then the duplicated files can be removed, and symlinks can be used instead. [ci skip]
1 parent 83921b8 commit cf423f8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

actioncable/lib/rails/generators/channel/channel_generator.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ def file_name
2424
@_file_name ||= super.gsub(/\_channel/i, '')
2525
end
2626

27+
# FIXME: Change these files to symlinks once RubyGems 2.5.0 is required.
2728
def generate_application_cable_files
2829
return if self.behavior != :invoke
2930

activerecord/lib/rails/generators/active_record/model/model_generator.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def attributes_with_index
3939
attributes.select { |a| !a.reference? && a.has_index? }
4040
end
4141

42+
# FIXME: Change this file to a symlink once RubyGems 2.5.0 is required.
4243
def generate_application_record
4344
if self.behavior == :invoke && !File.exist?('app/models/application_record.rb')
4445
template 'application_record.rb', 'app/models/application_record.rb'

0 commit comments

Comments
 (0)