Sha256: e987d7469cd787717564bc896a05f6a0ec0f3dae6cba12ccb60e0ad89e41f3ff

Contents?: true

Size: 547 Bytes

Versions: 3

Compression:

Stored size: 547 Bytes

Contents

module Plutonium
  module Core
    module Fields
      module Inputs
        class SimpleFormAssociationInput < Base
          attr_reader :reflection

          def initialize(name, reflection:, **user_options)
            @reflection = reflection
            super(name, **user_options)
          end

          def render(f, record)
            f.association name, **options
          end

          private

          def param
            raise NotImplementedError, "#{self.class}#param"
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
plutonium-0.6.2 lib/plutonium/core/fields/inputs/simple_form_association_input.rb
plutonium-0.6.1 lib/plutonium/core/fields/inputs/simple_form_association_input.rb
plutonium-0.6.0 lib/plutonium/core/fields/inputs/simple_form_association_input.rb