mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Ruby 1.9 compat: don't rely on lexical scoping since the included block is called from dependency_module
This commit is contained in:
@@ -41,7 +41,7 @@ module ActionController
|
||||
|
||||
included do
|
||||
extend ActiveSupport::DependencyModule
|
||||
depends_on RenderOptions
|
||||
depends_on ::ActionController::RenderOptions
|
||||
|
||||
def self.register_renderer(name)
|
||||
included { _add_render_option(name) }
|
||||
@@ -83,4 +83,4 @@ module ActionController
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user