Sha256: e1ad635308404492daad99cb92932af16b68e5e49e142820cd3dd7088e75aa86
Contents?: true
Size: 361 Bytes
Versions: 6
Compression:
Stored size: 361 Bytes
Contents
module NoCms module Blocks 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
6 entries across 6 versions & 1 rubygems