Class: Eyeloupe::ConfigsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/eyeloupe/configs_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#root

Instance Method Details

#updateObject



8
9
10
11
12
# File 'app/controllers/eyeloupe/configs_controller.rb', line 8

def update
  Eyeloupe.configuration.capture = @value == "true"
  cookies[:eyeloupe_capture] = @value
  redirect_to root_path, status: 303
end