lib/elasticity/base_document.rb in es-elasticity-0.14.1 vs lib/elasticity/base_document.rb in es-elasticity-1.0.0.jhumphreys
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
module Elasticity
class BaseDocument
include ::ActiveModel::Model
# Stores configuration for this class and all subclasses.
@@ -58,10 +60,10 @@
index_base_name: default_index_base_name
}
end
def self.default_document_type
- self.name.gsub('::', '_').underscore
+ self.name.gsub("::", "_").underscore
end
def self.default_index_base_name
ActiveSupport::Inflector.pluralize(default_document_type)
end