Module: Fluoroscope::ActionControllerExtension::Filters

Defined in:
app/controllers/fluoroscope/action_controller_extension.rb

Instance Method Summary collapse

Instance Method Details

#enable_fluoroscope?Boolean

Returns:

  • (Boolean)


8
9
10
11
12
# File 'app/controllers/fluoroscope/action_controller_extension.rb', line 8

def enable_fluoroscope?
  if params[:fluoroscope] == 'true'
    request.env[:fluoroscope_enabled] = true
  end
end