Class: InfoController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/info_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



8
9
10
11
12
13
14
# File 'app/controllers/info_controller.rb', line 8

def show
  if Info.configuration.enabled
    render json: Info.collect(request)
  else
    render nothing: true
  end
end