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.0.7 app/components/satis/info/component.rb
satis-1.0.75 app/components/satis/info/component.rb
satis-1.0.74 app/components/satis/info/component.rb
satis-1.0.70 app/components/satis/info/component.rb
satis-1.0.69 app/components/satis/info/component.rb
satis-1.0.68 app/components/satis/info/component.rb
satis-1.0.67 app/components/satis/info/component.rb
satis-1.0.66 app/components/satis/info/component.rb