Method: Gin::App.layout
- Defined in:
- lib/gin/app.rb
.layout(name = nil) ⇒ Object
Get or set the layout name. Layout file location is assumed to be in the views_dir. If the views dir has a controller wildcard ‘*’, the layout is assumed to be one level above the controller-specific directory.
Defaults to :layout.
435 436 437 438 |
# File 'lib/gin/app.rb', line 435 def self.layout name=nil @options[:layout] = name if name @options[:layout] end |