Module: MustacheRender::ActionControllerUtil::SharedMethods

Included in:
HelperMethods, InstanceMethods
Defined in:
lib/mustache_render/utils/action_controller_util.rb

Instance Method Summary collapse

Instance Method Details

#mustache_render_at_debug_mode?Boolean

是否是mustache_render调试模式

Returns:

  • (Boolean)


14
15
16
17
18
# File 'lib/mustache_render/utils/action_controller_util.rb', line 14

def mustache_render_at_debug_mode?
  return @_mustache_render_at_debug_mode if defined?(@_mustache_render_at_debug_mode)

  @_mustache_render_at_debug_mode = Rails.env.development? && params[:mustache_render_debug]
end