Sha256: 38dc7f27501947c5a02438c828d725d8fc0b6f3a459dbd15bfac0aecce7e585f

Contents?: true

Size: 354 Bytes

Versions: 14

Compression:

Stored size: 354 Bytes

Contents

module Headmin
  module Filter
    class ConditionalView < ViewModel
      def selected
        @selected ? "+#{@selected.to_s.upcase}+" : nil
      end

      def values
        {
          "+AND+": I18n.t("headmin.filters.filter.conditional.and"),
          "+OR+": I18n.t("headmin.filters.filter.conditional.or")
        }
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
headmin-0.6.3 app/models/headmin/filter/conditional_view.rb
headmin-0.6.2 app/models/headmin/filter/conditional_view.rb
headmin-0.6.1 app/models/headmin/filter/conditional_view.rb
headmin-0.6.0 app/models/headmin/filter/conditional_view.rb
headmin-0.5.9 app/models/headmin/filter/conditional_view.rb
headmin-0.5.8 app/models/headmin/filter/conditional_view.rb
headmin-0.5.7 app/models/headmin/filter/conditional_view.rb
headmin-0.5.6 app/models/headmin/filter/conditional_view.rb
headmin-0.5.5 app/models/headmin/filter/conditional_view.rb
headmin-0.5.4 app/models/headmin/filter/conditional_view.rb
headmin-0.5.3 app/models/headmin/filter/conditional_view.rb
headmin-0.5.2 app/models/headmin/filter/conditional_view.rb
headmin-0.5.1 app/models/headmin/filter/conditional_view.rb
headmin-0.5.0 app/models/headmin/filter/conditional_view.rb