lib/scaffolding_extensions/model/datamapper.rb
# List of symbols for associations to display on the scaffolded edit page. Defaults to
# all associations for which the scaffolding is enabled. Can be set with an instance variable.
List of symbols for associations to display on the scaffolded edit page. Defaults to
all associations for which the scaffolding is enabled. Can be set with an instance variable.
List of symbols for associations to display on the scaffolded edit page . Defaults to all associations for which the scaffolding is enabled . Can be set with an instance variable .
def scaffold_associations
    @scaffold_associations ||= relationships.keys.select { |v|
      relationships[v].send(:target_model).respond_to?(:scaffold_name)
    }.sort_by{|name| name.to_s}
  end
def scaffold_associations @scaffold_associations ||= relationships . keys . select { | v | relationships [ v ] . send ( :target_model ) . respond_to? ( :scaffold_name ) } . sort_by { | name | name . to_s } end
List of symbols for associations to display on the scaffolded edit page.
List of symbols for associations to display on the scaffolded edit page .