Sha256: 58ccd7e33f868ba4f4c523b0e9ff18b894b643821d262aaeccff3bf12b8d661f
Contents?: true
Size: 360 Bytes
Versions: 1
Compression:
Stored size: 360 Bytes
Contents
module NoCms module Menus 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nocms-menus-1.0.0 | app/models/no_cms/menus/concerns/translation_scopes.rb |