Sha256: c5aaf6813f749fdeaa209b04915be28dc19e4139819bcf96449d6bcd7031d05a
Contents?: true
Size: 350 Bytes
Versions: 12
Compression:
Stored size: 350 Bytes
Contents
# Grid with books that belong to the first author in the DB (assumes the existence of at least 1 author) class BooksBoundToAuthor < Netzke::Basepack::GridPanel def default_config super.merge( :model => "Book", :scope => {:author_id => Author.first.id}, :strong_default_attrs => {:author_id => Author.first.id} ) end end
Version data entries
12 entries across 12 versions & 2 rubygems