Sha256: a590189f14e4143c370bcbe9f7ff3d7521c30661f982d2a71dbc7c8430710e8c

Contents?: true

Size: 222 Bytes

Versions: 25

Compression:

Stored size: 222 Bytes

Contents

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

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

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
alchemy_cms-7.0.11 app/components/alchemy/ingredients/boolean_view.rb
alchemy_cms-7.1.6 app/components/alchemy/ingredients/boolean_view.rb
alchemy_cms-7.1.5 app/components/alchemy/ingredients/boolean_view.rb
alchemy_cms-7.0.10 app/components/alchemy/ingredients/boolean_view.rb
alchemy_cms-7.1.4 app/components/alchemy/ingredients/boolean_view.rb
alchemy_cms-7.0.9 app/components/alchemy/ingredients/boolean_view.rb
alchemy_cms-7.1.3 app/components/alchemy/ingredients/boolean_view.rb
alchemy_cms-7.1.2 app/components/alchemy/ingredients/boolean_view.rb
alchemy_cms-7.1.1 app/components/alchemy/ingredients/boolean_view.rb
alchemy_cms-7.1.0 app/components/alchemy/ingredients/boolean_view.rb
alchemy_cms-7.1.0.pre.rc1 app/components/alchemy/ingredients/boolean_view.rb
alchemy_cms-7.1.0.pre.b2 app/components/alchemy/ingredients/boolean_view.rb
alchemy_cms-7.1.0.pre.b1 app/components/alchemy/ingredients/boolean_view.rb
alchemy_cms-7.0.8 app/components/alchemy/ingredients/boolean_view.rb
alchemy_cms-7.0.7 app/components/alchemy/ingredients/boolean_view.rb
alchemy_cms-7.0.6 app/components/alchemy/ingredients/boolean_view.rb
alchemy_cms-7.0.5 app/components/alchemy/ingredients/boolean_view.rb
alchemy_cms-7.0.4 app/components/alchemy/ingredients/boolean_view.rb
alchemy_cms-7.0.3 app/components/alchemy/ingredients/boolean_view.rb
alchemy_cms-7.0.2 app/components/alchemy/ingredients/boolean_view.rb