lib/spiderfw/controller/mixins/visual.rb in spiderfw-0.6.39 vs lib/spiderfw/controller/mixins/visual.rb in spiderfw-1.0.0
- old
+ new
@@ -607,9 +607,10 @@
layout = Spider::Layout.new(resource.path)
layout.definer_class = resource.definer
layout.asset_set = params[:assets] if params[:assets]
layout.no_asset_profiles(*params[:no_asset_profiles]) if params[:no_asset_profiles]
layout.only_asset_profiles(params[:only_asset_profiles]) if params[:only_asset_profiles]
+ layout.single_layout = params[:single_layout] if params[:single_layout]
layout
end
def current_default_template
Spider::Inflector.underscore(self.to_s.split('::')[-1])