Class: Rails::Application

Inherits:
Engine
  • Object
show all
Defined in:
lib/ext/rails/application.rb

Instance Method Summary collapse

Instance Method Details

#major_versionObject



13
14
15
# File 'lib/ext/rails/application.rb', line 13

def major_version
  version_info['version']['major']
end

#minor_versionObject



17
18
19
# File 'lib/ext/rails/application.rb', line 17

def minor_version
  version_info['version']['minor']
end

#patch_versionObject



21
22
23
# File 'lib/ext/rails/application.rb', line 21

def patch_version
  version_info['version']['patch']
end

#versionObject



7
8
9
10
11
# File 'lib/ext/rails/application.rb', line 7

def version
  [major_version,
   minor_version,
   patch_version].join('.')
end