Sha256: dba592b354e8cd35d5a5c3248e56c465c9593924b961c1d53bfc994ecd27113d

Contents?: true

Size: 143 Bytes

Versions: 5

Compression:

Stored size: 143 Bytes

Contents

class BookGridWithScope < BookGrid
  def configure(c)
    super
    c.scope = lambda {|r| r.where(author_id: Author.first.try(:id))}
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
netzke-basepack-0.8.4 test/basepack_test_app/app/components/book_grid_with_scope.rb
netzke-basepack-0.8.3 test/basepack_test_app/app/components/book_grid_with_scope.rb
netzke-basepack-0.8.2 test/basepack_test_app/app/components/book_grid_with_scope.rb
netzke-basepack-0.8.1 test/basepack_test_app/app/components/book_grid_with_scope.rb
netzke-basepack-0.8.0 test/basepack_test_app/app/components/book_grid_with_scope.rb