Re-namespacing a bit to clear out some fairly old stuff from the top level
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
class FooController < ApplicationController
|
||||
layout :figure_out_layout
|
||||
|
||||
def index
|
||||
end
|
||||
|
||||
def pretty
|
||||
end
|
||||
|
||||
def figure_out_layout
|
||||
if action_name =~ /pretty/
|
||||
'pretty'
|
||||
else
|
||||
'standard'
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user