Permalink
Browse files

Fix for Proc arity and Ruby 1.9

  • Loading branch information...
mhoran committed Feb 23, 2012
1 parent a60cc5b commit 0d84952509ef51ff2ff18d5aa9ae8a9a0ca26724
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/high_voltage/pages_controller.rb
@@ -1,7 +1,7 @@
class HighVoltage::PagesController < ApplicationController
unloadable
- layout Proc.new { HighVoltage::layout }
+ layout Proc.new { |_| HighVoltage::layout }
rescue_from ActionView::MissingTemplate do |exception|
if exception.message =~ %r{Missing template #{content_path}}

0 comments on commit 0d84952

Please sign in to comment.