Sha256: aa94f54e3f6d0158aa7a2cb8babeb501d6fa5ed93ea46956796025fc909a3aca
Contents?: true
Size: 345 Bytes
Versions: 7
Compression:
Stored size: 345 Bytes
Contents
module AbAdmin module Views module Inputs class AssociationInput < ::SimpleForm::Inputs::CollectionSelectInput def input options[:collection] ||= object.class.reflect_on_association(attribute_name).klass.all @attribute_name = "#{attribute_name}_id" super end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems