spec/support/dummy_table.rb in table_cloth-0.2.3 vs spec/support/dummy_table.rb in table_cloth-0.3.0.beta1
- old
+ new
@@ -1,12 +1,8 @@
class DummyTable < TableCloth::Base
column :id
column :name
column :email
-
- def admin?
- view.admin?
- end
end
class DummyTableUnlessAdmin < TableCloth::Base
column :id, unless: :admin?
column :name
\ No newline at end of file