module LayoutSupport def layout Layout.find_by_name(self.layout_name) end end