Sha256: 038a8471f584d120d07cb271877aaa83a475921f2f880abd81d311c0a4558178

Contents?: true

Size: 619 Bytes

Versions: 47

Compression:

Stored size: 619 Bytes

Contents

# frozen_string_literal: true

module Satis
  module Info
    class Component < Satis::ApplicationComponent
      renders_many :items, lambda { |*args|
                             args.last.merge!(group: group)
                             component = Satis::InfoItem::Component.new(*args)
                             component.original_view_context = original_view_context
                             component
                           }

      attr_reader :group, :options

      def initialize(group: :main, **options)
        super
        @group = group
        @options = options
      end
    end
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
satis-2.1.47 app/components/satis/info/component.rb
satis-2.1.46 app/components/satis/info/component.rb
satis-2.1.45 app/components/satis/info/component.rb
satis-2.1.44 app/components/satis/info/component.rb
satis-2.1.43 app/components/satis/info/component.rb
satis-2.1.42 app/components/satis/info/component.rb
satis-2.1.41 app/components/satis/info/component.rb
satis-2.1.40 app/components/satis/info/component.rb
satis-2.1.39 app/components/satis/info/component.rb
satis-2.1.38 app/components/satis/info/component.rb
satis-2.1.37 app/components/satis/info/component.rb
satis-2.1.36 app/components/satis/info/component.rb
satis-2.1.35 app/components/satis/info/component.rb
satis-2.1.33 app/components/satis/info/component.rb
satis-2.1.31 app/components/satis/info/component.rb
satis-2.1.30 app/components/satis/info/component.rb
satis-2.1.29 app/components/satis/info/component.rb
satis-2.1.28 app/components/satis/info/component.rb
satis-2.1.27 app/components/satis/info/component.rb
satis-2.1.26 app/components/satis/info/component.rb