@@ -415,7 +415,8 @@ def copy_files
415
415
# Hq assets files
416
416
remove_file 'app/assets/javascripts/hq/application.js.coffee' , force : true
417
417
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'
419
420
420
421
# Partial files in layouts folder
421
422
directory 'app/views/layouts/partials' , 'app/views/layouts/partials'
@@ -446,7 +447,7 @@ def copy_files
446
447
447
448
# Controllers
448
449
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
450
451
451
452
end
452
453
@@ -491,17 +492,17 @@ def create_sanitizer_initializer(model_name)
491
492
end
492
493
493
494
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
505
506
end
506
507
507
508
def add_time_zone_to_user
0 commit comments