Sha256: be66525b13db9bc49bd9a74dca32c4242db173c24ef4d9f611e0cb7b11f74a71

Contents?: true

Size: 356 Bytes

Versions: 4

Compression:

Stored size: 356 Bytes

Contents

module ActiveAdminAssociations
  module FormConfigDSL
    def active_association_form(&block)
      config.active_association_form = block
    end

    def form_columns(*column_names)
      config.form_columns = column_names.flatten
    end

    def form_associations(&block)
      config.form_associations = AssociationConfig.new(&block)
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
activeadmin_associations-0.1.3 lib/active_admin_associations/form_config_dsl.rb
aa_associations-0.1.2 lib/active_admin_associations/form_config_dsl.rb
aa_associations-0.1.1 lib/active_admin_associations/form_config_dsl.rb
aa_associations-0.1.0 lib/active_admin_associations/form_config_dsl.rb