Sha256: e6434e790c00028ee5f891943cdf7433aa0060e2568372f734ac89bd25a48fa7
Contents?: true
Size: 271 Bytes
Versions: 10
Compression:
Stored size: 271 Bytes
Contents
class BookGridWithScopedAuthors < Netzke::Basepack::GridPanel def configuration super.tap do |c| c[:model] = "Book" c[:columns] = [:title, {:name => :author__first_name, :scope => lambda{ |r| r.where(:first_name.matches => "%tom%") }}] end end end
Version data entries
10 entries across 10 versions & 2 rubygems