Sha256: 7ec51b74c77e290ab4c57fc939d7df29906919cdce385fef8bc35f1da8268f5d
Contents?: true
Size: 526 Bytes
Versions: 7
Compression:
Stored size: 526 Bytes
Contents
# frozen_string_literal: true module Decidim module Plans # This query class filters all assemblies given an organization. class OrganizationTags < Rectify::Query def initialize(organization) @organization = organization end def query q = Decidim::Plans::Tag.where( organization: @organization ) q.order(Arel.sql("name ->> '#{current_locale}' ASC")) end private def current_locale I18n.locale.to_s end end end end
Version data entries
7 entries across 7 versions & 1 rubygems