Skip to content

Commit

Permalink
Fix for Proc arity and Ruby 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
mhoran committed Feb 23, 2012
1 parent a60cc5b commit 0d84952
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/high_voltage/pages_controller.rb
@@ -1,7 +1,7 @@
class HighVoltage::PagesController < ApplicationController class HighVoltage::PagesController < ApplicationController


unloadable unloadable
layout Proc.new { HighVoltage::layout } layout Proc.new { |_| HighVoltage::layout }


rescue_from ActionView::MissingTemplate do |exception| rescue_from ActionView::MissingTemplate do |exception|
if exception.message =~ %r{Missing template #{content_path}} if exception.message =~ %r{Missing template #{content_path}}
Expand Down

0 comments on commit 0d84952

Please sign in to comment.