lib/scaffolding_extensions/model/datamapper.rb
# Array of all association reflections for this model
# only shows the associations that are scaffolding_enabled
Array of all association reflections for this model
only shows the associations that are scaffolding_enabled
Array of all association reflections for this model only shows the associations that are scaffolding_enabled
def scaffold_all_associations
    relationships.values.select { |v|
      v.send(:target_model).respond_to?(:scaffold_name)
    }
  end
def scaffold_all_associations relationships . values . select { | v | v . send ( :target_model ) . respond_to? ( :scaffold_name ) } end
Array of all association reflections for this model
only shows the associations that are scaffolding_enabled
Array of all association reflections for this model only shows the associations that are scaffolding_enabled