Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
ismail Akbudak committed Jun 21, 2016
1 parent 4d454ef commit d19a4b5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions lib/cybele/app_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,8 @@ def copy_files
# Hq assets files
remove_file 'app/assets/javascripts/hq/application.js.coffee', force: true
remove_file 'app/assets/stylesheets/hq/application.css.sass', force: true
directory 'app/assets', 'app/assets'
copy_file 'app/assets/javascripts/hq/application.js.coffee'
copy_file 'app/assets/stylesheets/hq/application.css.sass'

# Partial files in layouts folder
directory 'app/views/layouts/partials', 'app/views/layouts/partials'
Expand Down Expand Up @@ -446,7 +447,7 @@ def copy_files

# Controllers
remove_file 'app/controllers/application_controller.rb', force: true
copy_file 'app/controllers/application_controller.rb', 'app/controllers/application_controller.rb'
template 'app/controllers/application_controller.rb.erb', 'app/controllers/application_controller.rb', force: true

end

Expand Down Expand Up @@ -491,17 +492,17 @@ def create_sanitizer_initializer(model_name)
end

def devise_parameter_sanitizer(model_name)
# inject_into_file 'app/controllers/application_controller.rb', after: 'protect_from_forgery with: :exception' do <<-CODE
# protected
# def devise_parameter_sanitizer
# if resource_class == #{model_name.classify}
# #{model_name.classify}::ParameterSanitizer.new(#{model_name.classify}, :#{model_name.parameterize}, params)
# else
# super # Use the default one
# end
# end
# CODE
# end
# inject_into_file 'app/controllers/application_controller.rb', after: 'protect_from_forgery with: :exception' do <<-CODE
# protected
# def devise_parameter_sanitizer
# if resource_class == #{model_name.classify}
# #{model_name.classify}::ParameterSanitizer.new(#{model_name.classify}, :#{model_name.parameterize}, params)
# else
# super # Use the default one
# end
# end
# CODE
# end
end

def add_time_zone_to_user
Expand Down

0 comments on commit d19a4b5

Please sign in to comment.