mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-27 10:08:11 +08:00
Please the Hound!
This commit is contained in:
parent
98c41052db
commit
5b448a4d4c
1 changed files with 2 additions and 2 deletions
|
@ -124,11 +124,11 @@ class AddonGenerator < Rails::Generators::NamedBase
|
|||
end
|
||||
|
||||
# lib/.../<engine>.rb
|
||||
folders_path_2 = @folders[0..-2].join('/')
|
||||
folders_path_n = @folders[0..-2].join('/')
|
||||
file_name = @folders[-1]
|
||||
create_file(
|
||||
"addons/#{@addon_name}/lib/" \
|
||||
"#{folders_path_2}/#{file_name}.rb"
|
||||
"#{folders_path_n}/#{file_name}.rb"
|
||||
) do
|
||||
embed_into_modules { '' }
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue