Sha256: 9ea2d6e9d6c3b5b837d0d609cbd5955166b7202f6e14e3d909883c2d1927c72a

Contents?: true

Size: 393 Bytes

Versions: 6

Compression:

Stored size: 393 Bytes

Contents

class BookGrid < Netzke::Basepack::GridPanel
  title I18n.t('books', :default => "Books")

  model "Book"

  add_form_config :class_name => "BookForm"
  edit_form_config :class_name => "BookForm"
  multi_edit_form_config :class_name => "BookForm"

  # We need to specify how we want to sort on this virtual column:
  override_column :author__name, :sorting_scope => :sorted_by_author_name
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
netzke-basepack-0.7.7 test/basepack_test_app/app/components/book_grid.rb
netzke-basepack-zh-0.7.6 test/basepack_test_app/app/components/book_grid.rb
netzke-basepack-0.7.6 test/basepack_test_app/app/components/book_grid.rb
netzke-basepack-0.7.5 test/basepack_test_app/app/components/book_grid.rb
netzke-basepack-0.7.4 test/basepack_test_app/app/components/book_grid.rb
netzke-basepack-0.7.3 test/basepack_test_app/app/components/book_grid.rb