Class: VersionView::BuildInfoController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/version_view/build_info_controller.rb

Instance Method Summary collapse

Instance Method Details

#get_dataObject



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'app/controllers/version_view/build_info_controller.rb', line 3

def get_data
  
  version = VersionView::BuildInfo.version
         
  respond_to do |format|
    format.json {
      render :json => {:version => version} 
    }
  
    format.text {
      data = "version: #{version}"
      render :text => data
    }
  end        
end