Sha256: 7f203d65a58abfcf3758729e467c5bd356f3bec0c3e336799d9781d8c027ccdf
Contents?: true
Size: 360 Bytes
Versions: 3
Compression:
Stored size: 360 Bytes
Contents
module NoCms module Pages module Concerns module TranslationScopes extend ActiveSupport::Concern included do scope :where_with_locale, ->(where_params, locale = ::I18n.locale) { with_translations(locale).where(self::Translation.table_name => where_params) } end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems