app/models/lesli_babel/string.rb in lesli_babel-0.2.0 vs app/models/lesli_babel/string.rb in lesli_babel-0.3.0

- old
+ new

@@ -215,15 +215,14 @@ reference_module_bucket_string: "#{string.reference_module_bucket}-#{string.label}" ) end def path - self[:engine_name] + self[:engine_code] .downcase - .sub("cloud", "") .concat(".") - .concat(self[:bucket_name]) + .concat(self[:bucket_code]) .concat(".") .concat(self[:label]) end private @@ -235,9 +234,9 @@ .gsub(/[^0-9A-Za-z\s\-\_]/, '') # remove special characters from string .gsub(/-/, '_') # replace dashes with underscore .gsub(/\s+/, '_') # replace spaces or spaces with single dash self.status = "normal" if self.status.blank? - self.reference_bucket = "#{self.bucket.reference_module}-#{self.bucket.name}" + self.reference_bucket = "#{self.bucket.reference_module}-#{self.bucket.code}" end end end