Skip to content
Browse files

Update lib/application_checker.rb

Added form_remote_for to check_old_ajax_helpers. The method form_remote_for was in older Rails 2 frameworks and was still supported in Rails 2.3.*
  • Loading branch information...
1 parent 3fe881b commit 6198aa0f33ca8d48da441356be8f1d0baf4ec993 @bacrossland bacrossland committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/application_checker.rb
View
2 lib/application_checker.rb
@@ -283,7 +283,7 @@ def check_old_helpers
# Checks for old-style AJAX helpers
def check_old_ajax_helpers
files = []
- ['link_to_remote','form_remote_tag','remote_form_for'].each do |type|
+ ['link_to_remote','form_remote_tag','remote_form_for', 'form_remote_for'].each do |type|
lines = grep_for(type, "app/views/**/*")
inner_files = extract_filenames(lines)
files += inner_files unless inner_files.nil?

0 comments on commit 6198aa0

Please sign in to comment.
Something went wrong with that request. Please try again.