Sha256: 51aad4f931163fa51fa88835439760d608e26b98f9f666be8007cbadaa819502
Contents?: true
Size: 216 Bytes
Versions: 1
Compression:
Stored size: 216 Bytes
Contents
class ActiveSearch::Mongoid::Model def to_liquid _stored.each_with_object({}) do |(k,v),memo| memo[k] = v.respond_to?(:has_key?) && v.has_key?(I18n.locale.to_s) ? v[I18n.locale.to_s] : v end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
locomotivecms-search-0.0.2 | lib/locomotive/search/concerns/activesearch/mongoid/model.rb |