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

Version Path
netzke-basepack-0.7.7 test/basepack_test_app/app/components/books_bound_to_author.rb
netzke-basepack-zh-0.7.6 test/basepack_test_app/app/components/books_bound_to_author.rb
netzke-basepack-0.7.6 test/basepack_test_app/app/components/books_bound_to_author.rb
netzke-basepack-0.7.5 test/basepack_test_app/app/components/books_bound_to_author.rb
netzke-basepack-0.7.4 test/basepack_test_app/app/components/books_bound_to_author.rb
netzke-basepack-0.7.3 test/basepack_test_app/app/components/books_bound_to_author.rb
netzke-basepack-0.7.2 test/basepack_test_app/app/components/books_bound_to_author.rb
netzke-basepack-0.7.1 test/basepack_test_app/app/components/books_bound_to_author.rb
netzke-basepack-0.6.5 test/rails_app/app/components/books_bound_to_author.rb
netzke-basepack-0.7.0 test/rails_app/app/components/books_bound_to_author.rb
netzke-basepack-0.6.4 test/rails_app/app/components/books_bound_to_author.rb
netzke-basepack-0.6.3 test/rails_app/app/components/books_bound_to_author.rb