lib/netzke/basepack/attributes.rb in netzke-basepack-1.0.0.0.pre3 vs lib/netzke/basepack/attributes.rb in netzke-basepack-1.0.0.0

- old
+ new

@@ -68,16 +68,16 @@ # # setter: lambda {|r,v| r.first_name, r.last_name = v.split(" ") } # # [scope] # - # The scope for association attribute. Same syntax applies as for scoping out records for the grid. + # A Proc or a Hash used to scope out one-to-many association options. Same syntax applies as for scoping out records in the grid. # # [filter_association_with] # # A Proc object that receives the relation and the value to filter by. Example: # - # column :author__name do |c| + # attribute :author__name do |c| # c.filter_association_with = lambda {|rel, value| rel.where("first_name like ? or last_name like ?", "%#{value}%", "%#{value}%" ) } # end # # [format] #