21 lines
362 B
Ruby
21 lines
362 B
Ruby
class ApplicationController < ActionController::Base
|
|
protect_from_forgery :except => :receive
|
|
layout 'application'
|
|
|
|
before_filter :set_people
|
|
|
|
layout :layout_by_resource
|
|
|
|
def layout_by_resource
|
|
if devise_controller?
|
|
"session_wall"
|
|
else
|
|
"application"
|
|
end
|
|
end
|
|
|
|
def set_people
|
|
@people = Person.friends.all
|
|
end
|
|
|
|
end
|