lib/avm/tools/app_src.rb in avm-tools-0.119.0 vs lib/avm/tools/app_src.rb in avm-tools-0.120.0
- old
+ new
@@ -15,10 +15,11 @@
common_constructor :path do
self.path = path.to_pathname
source_stereotypes_mixins
end
+ delegate :configuration, to: :avm_instance
delegate :to_s, to: :path
def locale
configuration.if_present(&:locale) || ::I18n.default_locale
end
@@ -35,14 +36,9 @@
private
def avm_instance_uncached
::Avm::Registry.sources.detect(path)
- end
-
- # @return [Avm::Sources::Configuration]
- def configuration_uncached
- ::Avm::Sources::Configuration.find_in_path(path)
end
def stereotypes_jobs(job, job_args)
job_class_method = "#{job}_class"
r = []