Sha256: 3498810c1441b1e2ca3bd74c81d81e6e623bb3d5d64045bb24836ef0a3a06385

Contents?: true

Size: 466 Bytes

Versions: 12

Compression:

Stored size: 466 Bytes

Contents

class BookGridWithNestedAttributes < Netzke::Basepack::GridPanel
  def configuration
    super.merge(
      :model => "Book",
      :columns => [:title, {:name => :author__first_name, :nested_attribute => true}, {:name => :author__last_name, :nested_attribute => true}]
    )
  end

  def default_fields_for_forms
    [{:name => :title}, {:name => :author__first_name, :nested_attribute => true}, {:name => :author__last_name, :nested_attribute => true}]
  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/book_grid_with_nested_attributes.rb
netzke-basepack-zh-0.7.6 test/basepack_test_app/app/components/book_grid_with_nested_attributes.rb
netzke-basepack-0.7.6 test/basepack_test_app/app/components/book_grid_with_nested_attributes.rb
netzke-basepack-0.7.5 test/basepack_test_app/app/components/book_grid_with_nested_attributes.rb
netzke-basepack-0.7.4 test/basepack_test_app/app/components/book_grid_with_nested_attributes.rb
netzke-basepack-0.7.3 test/basepack_test_app/app/components/book_grid_with_nested_attributes.rb
netzke-basepack-0.7.2 test/basepack_test_app/app/components/book_grid_with_nested_attributes.rb
netzke-basepack-0.7.1 test/basepack_test_app/app/components/book_grid_with_nested_attributes.rb
netzke-basepack-0.6.5 test/rails_app/app/components/book_grid_with_nested_attributes.rb
netzke-basepack-0.7.0 test/rails_app/app/components/book_grid_with_nested_attributes.rb
netzke-basepack-0.6.4 test/rails_app/app/components/book_grid_with_nested_attributes.rb
netzke-basepack-0.6.3 test/rails_app/app/components/book_grid_with_nested_attributes.rb