Style: Don't put 'require' statements inside methods
This commit is contained in:
parent
ca1e8de89c
commit
4901279391
3 changed files with 8 additions and 13 deletions
|
@ -1,4 +1,5 @@
|
|||
require 'chunks/chunk'
|
||||
require 'sanitize'
|
||||
|
||||
# This chunks allows certain parts of a wiki page to be hidden from the
|
||||
# rest of the rendering pipeline. It should be run at the beginning
|
||||
|
@ -16,7 +17,6 @@ require 'chunks/chunk'
|
|||
|
||||
class NoWiki < Chunk::Abstract
|
||||
|
||||
require 'sanitize'
|
||||
include Sanitize
|
||||
|
||||
NOWIKI_PATTERN = Regexp.new('<nowiki>(.*?)</nowiki>', Regexp::MULTILINE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue