Class: KrackerApplicationController

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

Direct Known Subclasses

KrackerController

Instance Method Summary collapse

Instance Method Details

#get_gem_versionObject



4
5
6
7
# File 'app/controllers/kracker_application_controller.rb', line 4

def get_gem_version
  @kracker_gem_version = Gem.loaded_specs['kracker'].version.to_s
  @parent_application_name = Rails.application.class.to_s.split('::').first
end