class DeprecatedSyntax
Constants
- DEPRECATIONS
DEPRECATIONS
illustrates wich methods had been deprecated see more on https=>//edgeguides.rubyonrails.org/5_0_release_notes.html
Public Class Methods
check_deprecations(path)
click to toggle source
# File lib/rails_deprecated_syntax/deprecated_syntax.rb, line 23 def self.check_deprecations(path) path = path ? " -- #{path}" : '.' DEPRECATIONS.map do |k, v| result = `git grep -nr #{k} #{path}` next if result.empty? @report.concat("---------------------------------------------------------------------\n") @report.concat("#{v}\n") @report.concat("#{result}\n") end @report end
show_deprecations(path)
click to toggle source
# File lib/rails_deprecated_syntax/deprecated_syntax.rb, line 38 def self.show_deprecations(path) puts self.check_deprecations(path) end