lib/scaffolding_extensions/model/datamapper.rb
# Return the class, left foreign key, right foreign key, and join table for this habtm association
Return the class, left foreign key, right foreign key, and join table for this habtm association
Return the class left foreign key right foreign key and join table for this habtm association
def scaffold_habtm_reflection_options(association)
    habtm = relationships[association]
    [
      habtm.target_model,
      get_key_array_safe(habtm.through.child_key).name,
      get_key_array_safe(habtm.via.child_key).name,
      habtm.send(:through_model).storage_name
    ]
  end
def scaffold_habtm_reflection_options ( association ) habtm = relationships [ association ] [ habtm . target_model , get_key_array_safe ( habtm . through . child_key ) . name , get_key_array_safe ( habtm . via . child_key ) . name , habtm . send ( :through_model ) . storage_name ] end
Return the class, left foreign key, right foreign key, and join table for this habtm association
Return the class left foreign key right foreign key and join table for this habtm association
association
<not_specific>