lib/trestle/table/row.rb in trestle-0.9.8 vs lib/trestle/table/row.rb in trestle-0.10.0.pre
- old
+ new
@@ -31,11 +31,12 @@
def options(instance)
options = Trestle::Options.new
if @table.admin && @table.autolink? && @table.admin.actions.include?(:show)
+ options.merge!(data: { controller: "follow-url", action: "click->follow-url#follow" })
options.merge!(data: { url: admin_url_for(instance) })
- options.merge!(data: { behavior: "dialog" }) if @table.admin.form.dialog?
+ options.merge!(data: { modal: true }) if @table.admin.form.modal?
end
options.merge!(@row.options)
options.merge!(@template.instance_exec(instance, &@row.block)) if @row.block