Module: Irie::Extensions::SmartLayout

Extended by:
ActiveSupport::Concern
Defined in:
lib/irie/extensions/smart_layout.rb

Overview

Specify layout: false unless request.format.html?

Instance Method Summary collapse

Instance Method Details

#index(options = {}, &block) ⇒ Object



12
13
14
15
16
# File 'lib/irie/extensions/smart_layout.rb', line 12

def index(options={}, &block)
  logger.debug("Irie::Extensions::NoLayout.index") if ::Irie.debug?
  options.merge!({layout: false}) unless request.format.html?
  super(options, &block)
end