Sha256: ede9d1709487f07d689465ee4310425ef2df911bbf4b96a884685e354dc8175f

Contents?: true

Size: 237 Bytes

Versions: 31

Compression:

Stored size: 237 Bytes

Contents

module Alchemy
  module Ingredients
    class BooleanView < BaseView
      def call
        Alchemy.t(value.to_s, scope: "ingredient_values.boolean").html_safe
      end

      def render?
        !value.nil?
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
alchemy_cms-7.4.2 app/components/alchemy/ingredients/boolean_view.rb
alchemy_cms-7.3.6 app/components/alchemy/ingredients/boolean_view.rb
alchemy_cms-7.2.9 app/components/alchemy/ingredients/boolean_view.rb
alchemy_cms-7.4.1 app/components/alchemy/ingredients/boolean_view.rb
alchemy_cms-7.4.0 app/components/alchemy/ingredients/boolean_view.rb
alchemy_cms-7.3.5 app/components/alchemy/ingredients/boolean_view.rb
alchemy_cms-7.2.8 app/components/alchemy/ingredients/boolean_view.rb
alchemy_cms-7.1.13 app/components/alchemy/ingredients/boolean_view.rb
alchemy_cms-7.0.16 app/components/alchemy/ingredients/boolean_view.rb
alchemy_cms-7.3.4 app/components/alchemy/ingredients/boolean_view.rb
alchemy_cms-7.3.3 app/components/alchemy/ingredients/boolean_view.rb
alchemy_cms-7.3.2 app/components/alchemy/ingredients/boolean_view.rb
alchemy_cms-7.2.7 app/components/alchemy/ingredients/boolean_view.rb
alchemy_cms-7.3.1 app/components/alchemy/ingredients/boolean_view.rb
alchemy_cms-7.3.0 app/components/alchemy/ingredients/boolean_view.rb
alchemy_cms-7.2.6 app/components/alchemy/ingredients/boolean_view.rb
alchemy_cms-7.2.5 app/components/alchemy/ingredients/boolean_view.rb
alchemy_cms-7.1.12 app/components/alchemy/ingredients/boolean_view.rb
alchemy_cms-7.0.15 app/components/alchemy/ingredients/boolean_view.rb
alchemy_cms-7.2.4 app/components/alchemy/ingredients/boolean_view.rb