Class: Locomotive::Api::VersionController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/locomotive/api/version_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



7
8
9
10
11
12
13
# File 'app/controllers/locomotive/api/version_controller.rb', line 7

def show
  respond_to do |format|
    format.html { render text: Locomotive::VERSION }
    format.json { render json: { engine: Locomotive::VERSION } }
    format.xml  { render xml: { engine: Locomotive::VERSION } }
  end
end