142
143
144
145
146
147
148
149
150
|
# File 'lib/public_activity/renderable.rb', line 142
def prepare_layout(root, layout)
if layout
path = layout.to_s
unless path.starts_with?(root) || path.starts_with?("/")
return File.join(root, path)
end
end
layout
end
|