Sha256: 038a8471f584d120d07cb271877aaa83a475921f2f880abd81d311c0a4558178

Contents?: true

Size: 619 Bytes

Versions: 48

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

48 entries across 48 versions & 1 rubygems

Version Path
satis-2.1.26 app/components/satis/info/component.rb
satis-2.1.24 app/components/satis/info/component.rb
satis-2.1.23 app/components/satis/info/component.rb
satis-2.1.22 app/components/satis/info/component.rb
satis-2.1.21 app/components/satis/info/component.rb
satis-2.1.20 app/components/satis/info/component.rb
satis-2.1.19 app/components/satis/info/component.rb
satis-2.1.18 app/components/satis/info/component.rb
satis-2.1.11 app/components/satis/info/component.rb
satis-2.1.10 app/components/satis/info/component.rb
satis-2.1.9 app/components/satis/info/component.rb
satis-2.1.8 app/components/satis/info/component.rb
satis-2.1.6 app/components/satis/info/component.rb
satis-2.1.5 app/components/satis/info/component.rb
satis-2.1.4 app/components/satis/info/component.rb
satis-2.1.3 app/components/satis/info/component.rb
satis-2.1.1 app/components/satis/info/component.rb
satis-2.1.0 app/components/satis/info/component.rb
satis-2.0.9 app/components/satis/info/component.rb
satis-2.0.8 app/components/satis/info/component.rb