lib/trestle/table.rb in trestle-0.9.1 vs lib/trestle/table.rb in trestle-0.9.2
- old
+ new
@@ -15,9 +15,15 @@
def initialize(options={})
@options = options
@columns = []
end
+ def with_options(opts={})
+ dup.tap do |table|
+ table.options.replace(options.merge(opts))
+ end
+ end
+
def admin
Trestle.lookup(options[:admin]) if options.key?(:admin)
end
def sortable?