Specify layout: false unless request.format.html?
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