lib/elastics/active_model/attachment.rb in elastics-models-1.1.11 vs lib/elastics/active_model/attachment.rb in elastics-models-1.2.0
- old
+ new
@@ -24,10 +24,10 @@
}
}
}
props.extend(Struct::Mergeable).deep_merge! args.first if args.first.is_a?(Hash)
- scope :"#{name}_scope", fields("#{name}.title",
+ scope :"#{name}_scope", source("#{name}.title",
"#{name}.author",
"#{name}.name",
"#{name}.content_type",
"#{name}.date",
"#{name}.keywords",