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.



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

def app_config
  @app_config
end

#envObject (readonly)

Returns the value of attribute env.



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

def env
  @env
end

#versionObject (readonly)

Returns the value of attribute version.



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

def version
  @version
end

Class Method Details

.rootObject



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

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