Class: RailsAppVersion::Railtie

Inherits:
Rails::Railtie
  • Object
show all
Defined in:
lib/rails_app_version/railtie.rb

Constant Summary collapse

CONFIG_FILE =
"app_version.yml".freeze

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#app_configObject (readonly)

Returns the value of attribute app_config.



15
16
17
# File 'lib/rails_app_version/railtie.rb', line 15

def app_config
  @app_config
end

#envObject (readonly)

Returns the value of attribute env.



15
16
17
# File 'lib/rails_app_version/railtie.rb', line 15

def env
  @env
end

#versionObject (readonly)

Returns the value of attribute version.



15
16
17
# File 'lib/rails_app_version/railtie.rb', line 15

def version
  @version
end

Class Method Details

.rootObject



10
11
12
# File 'lib/rails_app_version/railtie.rb', line 10

def root
  @root ||= Pathname.new(File.expand_path(File.expand_path("../../", __dir__)))
end