app/controllers/enlightenment/pages_controller.rb in enlightenment-0.0.1.pre.2 vs app/controllers/enlightenment/pages_controller.rb in enlightenment-0.0.1.pre.3

- old
+ new

@@ -1,15 +1,20 @@ module Enlightenment class PagesController < Enlightenment::ApplicationController respond_to :html + layout :pages_layout def show super end private - # handle deprecation warning. + def pages_layout + Enlightenment.pages_layout + end + + # handles deprecation warning. def path super.sub(/\.html$/, '') end end end