mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
remove useless parameter
This commit is contained in:
parent
7a2622bcbd
commit
cab85e9926
1 changed files with 2 additions and 2 deletions
|
@ -242,7 +242,7 @@ module ActionView
|
|||
end
|
||||
|
||||
instrument("!compile_template") do
|
||||
compile(view, mod)
|
||||
compile(mod)
|
||||
end
|
||||
|
||||
# Just discard the source if we have a virtual path. This
|
||||
|
@ -264,7 +264,7 @@ module ActionView
|
|||
# encode the source into <tt>Encoding.default_internal</tt>.
|
||||
# In general, this means that templates will be UTF-8 inside of Rails,
|
||||
# regardless of the original source encoding.
|
||||
def compile(view, mod) #:nodoc:
|
||||
def compile(mod) #:nodoc:
|
||||
encode!
|
||||
method_name = self.method_name
|
||||
code = @handler.call(self)
|
||||
|
|
Loading…
Reference in a new issue