Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move action_controller/vendor/html-scanner to action_view
This is another step in moving Action View's dependencies in Action Pack to Action View itself. Also, HtmlScanner seems to be better suited for views rather than controllers.
- Loading branch information
Showing
16 changed files
with
32 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,4 @@ | ||
$LOAD_PATH << "#{File.dirname(__FILE__)}/html-scanner" | ||
require 'action_view/vendor/html-scanner' | ||
require 'active_support/deprecation' | ||
|
||
module HTML | ||
extend ActiveSupport::Autoload | ||
|
||
eager_autoload do | ||
autoload :CDATA, 'html/node' | ||
autoload :Document, 'html/document' | ||
autoload :FullSanitizer, 'html/sanitizer' | ||
autoload :LinkSanitizer, 'html/sanitizer' | ||
autoload :Node, 'html/node' | ||
autoload :Sanitizer, 'html/sanitizer' | ||
autoload :Selector, 'html/selector' | ||
autoload :Tag, 'html/node' | ||
autoload :Text, 'html/node' | ||
autoload :Tokenizer, 'html/tokenizer' | ||
autoload :Version, 'html/version' | ||
autoload :WhiteListSanitizer, 'html/sanitizer' | ||
end | ||
end | ||
ActiveSupport::Deprecation.warn 'vendored html-scanner was moved to action_view, please require "action_view/vendor/html-scanner" instead' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
$LOAD_PATH << "#{File.dirname(__FILE__)}/html-scanner" | ||
|
||
module HTML | ||
extend ActiveSupport::Autoload | ||
|
||
eager_autoload do | ||
autoload :CDATA, 'html/node' | ||
autoload :Document, 'html/document' | ||
autoload :FullSanitizer, 'html/sanitizer' | ||
autoload :LinkSanitizer, 'html/sanitizer' | ||
autoload :Node, 'html/node' | ||
autoload :Sanitizer, 'html/sanitizer' | ||
autoload :Selector, 'html/selector' | ||
autoload :Tag, 'html/node' | ||
autoload :Text, 'html/node' | ||
autoload :Tokenizer, 'html/tokenizer' | ||
autoload :Version, 'html/version' | ||
autoload :WhiteListSanitizer, 'html/sanitizer' | ||
end | ||
end |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters