lib/trestle/table/row.rb in trestle-0.8.4 vs lib/trestle/table/row.rb in trestle-0.8.5

- old
+ new

@@ -19,18 +19,18 @@ @row, @template = row, template end def options(instance) options = Trestle::Options.new - options.merge!(data: { url: admin_url_for(instance) }) if table.options[:admin] + options.merge!(data: { url: admin_url_for(instance) }) if table.admin options.merge!(@row.options) options.merge!(@template.instance_exec(instance, &@row.block)) if @row.block options end protected def admin_url_for(instance) - @template.admin_url_for(instance, admin: table.options[:admin]) + @template.admin_url_for(instance, admin: table.admin) end end end end end