Skip to content

Commit d19a4b5

Browse files
author
ismail Akbudak
committed
fix error
1 parent 4d454ef commit d19a4b5

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

lib/cybele/app_builder.rb

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,8 @@ def copy_files
415415
# Hq assets files
416416
remove_file 'app/assets/javascripts/hq/application.js.coffee', force: true
417417
remove_file 'app/assets/stylesheets/hq/application.css.sass', force: true
418-
directory 'app/assets', 'app/assets'
418+
copy_file 'app/assets/javascripts/hq/application.js.coffee'
419+
copy_file 'app/assets/stylesheets/hq/application.css.sass'
419420

420421
# Partial files in layouts folder
421422
directory 'app/views/layouts/partials', 'app/views/layouts/partials'
@@ -446,7 +447,7 @@ def copy_files
446447

447448
# Controllers
448449
remove_file 'app/controllers/application_controller.rb', force: true
449-
copy_file 'app/controllers/application_controller.rb', 'app/controllers/application_controller.rb'
450+
template 'app/controllers/application_controller.rb.erb', 'app/controllers/application_controller.rb', force: true
450451

451452
end
452453

@@ -491,17 +492,17 @@ def create_sanitizer_initializer(model_name)
491492
end
492493

493494
def devise_parameter_sanitizer(model_name)
494-
# inject_into_file 'app/controllers/application_controller.rb', after: 'protect_from_forgery with: :exception' do <<-CODE
495-
# protected
496-
# def devise_parameter_sanitizer
497-
# if resource_class == #{model_name.classify}
498-
# #{model_name.classify}::ParameterSanitizer.new(#{model_name.classify}, :#{model_name.parameterize}, params)
499-
# else
500-
# super # Use the default one
501-
# end
502-
# end
503-
# CODE
504-
# end
495+
# inject_into_file 'app/controllers/application_controller.rb', after: 'protect_from_forgery with: :exception' do <<-CODE
496+
# protected
497+
# def devise_parameter_sanitizer
498+
# if resource_class == #{model_name.classify}
499+
# #{model_name.classify}::ParameterSanitizer.new(#{model_name.classify}, :#{model_name.parameterize}, params)
500+
# else
501+
# super # Use the default one
502+
# end
503+
# end
504+
# CODE
505+
# end
505506
end
506507

507508
def add_time_zone_to_user

0 commit comments

Comments
 (0)