Module: Woodhouse::RailsExtensions

Defined in:
lib/woodhouse/rails.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) finish_loading_layout!



11
12
13
14
15
16
# File 'lib/woodhouse/rails.rb', line 11

def finish_loading_layout!
  @delay_finished = true
  if @delayed_layout
    layout &@delayed_layout
  end
end

- (Object) layout(&blk)



3
4
5
6
7
8
9
# File 'lib/woodhouse/rails.rb', line 3

def layout(&blk)
  unless @delay_finished
    @delayed_layout = blk
  else
    super
  end
end