Sha256: 3a299404976c809cfeaa2a0ca1edaf8458354096e2d8f4a10a10a1a0e20a089b

Contents?: true

Size: 360 Bytes

Versions: 4

Compression:

Stored size: 360 Bytes

Contents

module RailsAdmin
  FormBuilder.class_eval do

    private

    def nested_field_association?(field, nested_in)
      field.inverse_of.presence && nested_in.presence && field.inverse_of == nested_in.name &&
        (@template.instance_variable_get(:@model_config).abstract_model == field.abstract_model || field.name == nested_in.inverse_of)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails_admin_cms-0.0.4 app/helpers/rails_admin/form_builder_decorator.rb
rails_admin_cms-0.0.3 app/helpers/rails_admin/form_builder_decorator.rb
rails_admin_cms-0.0.2 app/helpers/rails_admin/form_builder_decorator.rb
rails_admin_cms-0.0.1 app/helpers/rails_admin/form_builder_decorator.rb