mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #35916 from soartec-lab/delete_not_use_method
Delete not user method for plugin_generator
This commit is contained in:
commit
43288a053f
1 changed files with 0 additions and 15 deletions
|
@ -144,17 +144,6 @@ task default: :test
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def javascripts
|
|
||||||
return if options.skip_javascript?
|
|
||||||
|
|
||||||
if mountable?
|
|
||||||
template "rails/javascripts.js",
|
|
||||||
"app/assets/javascripts/#{namespaced_name}/application.js"
|
|
||||||
elsif full?
|
|
||||||
empty_directory_with_keep_file "app/assets/javascripts/#{namespaced_name}"
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def bin(force = false)
|
def bin(force = false)
|
||||||
bin_file = engine? ? "bin/rails.tt" : "bin/test.tt"
|
bin_file = engine? ? "bin/rails.tt" : "bin/test.tt"
|
||||||
template bin_file, force: force do |content|
|
template bin_file, force: force do |content|
|
||||||
|
@ -236,10 +225,6 @@ task default: :test
|
||||||
build(:stylesheets) unless api?
|
build(:stylesheets) unless api?
|
||||||
end
|
end
|
||||||
|
|
||||||
def create_javascript_files
|
|
||||||
build(:javascripts) unless api?
|
|
||||||
end
|
|
||||||
|
|
||||||
def create_bin_files
|
def create_bin_files
|
||||||
build(:bin)
|
build(:bin)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue