hound compliance

pull/14101/head
Alegoiko 6 years ago
parent 0662327ff5
commit 377d1ca0f2

@ -139,7 +139,7 @@ module ApplicationHelper
options = sources.extract_options!.stringify_keys
with_full_path = []
sources.each do |source|
with_full_path << path + "#{source}"
with_full_path << path + source
end
with_full_path << options

@ -12,9 +12,12 @@ module Carto
@@frontend_version ||= JSON::parse(File.read(Rails.root.join("package.json")))["version"]
end
def read_editor_assets_version
File.read(Rails.root.join("config/editor_assets_version.json"))
end
def editor_assets_version
file = File.read(Rails.root.join("config/editor_assets_version.json"))
@@editor_assets_version ||= JSON::parse(file)["version"]
@@editor_assets_version ||= JSON::parse(read_editor_assets_version)["version"]
end
def env_app_config

Loading…
Cancel
Save