Ticket #365 (new enhancement)

Opened 1 year ago

Improvements to AAR interface

Reported by: sandal Assigned to:
Milestone: Keywords:
Cc:

Description

A rough sketch of possible improvements to AAR syntax:

report_table(:all, :conditions => ["foo = ?, 12], :include => lambda { |includes|
   includes.methods = %w[a b c]
   includes.only = %w[x y]
   includes.child(:blah) do |c|
     c.methods %w[a b c]
     c.only = %w[x y]
   end
}