Skip to content

Commit c4d6ba6

Browse files
authored
Action Text generator can now rely on Propshaft (rails#52918)
* Action Text generator can now rely on Propshaft
1 parent cc03a66 commit c4d6ba6

File tree

6 files changed

+421
-57
lines changed

6 files changed

+421
-57
lines changed

actiontext/lib/generators/action_text/install/install_generator.rb

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,8 @@ def append_javascript_dependencies
3636
end
3737

3838
def create_actiontext_files
39-
destination = Pathname(destination_root)
40-
4139
template "actiontext.css", "app/assets/stylesheets/actiontext.css"
4240

43-
unless destination.join("app/assets/application.css").exist?
44-
if (stylesheets = Dir.glob "#{destination_root}/app/assets/stylesheets/application.*.{scss,css}").length > 0
45-
insert_into_file stylesheets.first.to_s, %(@import 'actiontext.css';)
46-
else
47-
say <<~INSTRUCTIONS, :green
48-
To use the Trix editor, you must require 'app/assets/stylesheets/actiontext.css' in your base stylesheet.
49-
INSTRUCTIONS
50-
end
51-
end
52-
5341
gem_root = "#{__dir__}/../../../.."
5442

5543
copy_file "#{gem_root}/app/views/active_storage/blobs/_blob.html.erb",

0 commit comments

Comments
 (0)