Skip to content

Commit

Permalink
Ruby 1.9 compat: don't rely on lexical scoping since the included blo…
Browse files Browse the repository at this point in the history
…ck is called from dependency_module
  • Loading branch information
jeremy committed May 22, 2009
1 parent 4c52ba2 commit 1fa7e33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actionpack/lib/action_controller/new_base/render_options.rb
Expand Up @@ -41,7 +41,7 @@ module RenderOption

included do
extend ActiveSupport::DependencyModule
depends_on RenderOptions
depends_on ::ActionController::RenderOptions

def self.register_renderer(name)
included { _add_render_option(name) }
Expand Down Expand Up @@ -83,4 +83,4 @@ def _render_update(proc, options)
end
end
end
end
end

0 comments on commit 1fa7e33

Please sign in to comment.