lib/engine2/models/Files.rb in engine2-1.0.4 vs lib/engine2/models/Files.rb in engine2-1.0.5

- old
+ new

@@ -1,6 +1,7 @@ # coding: utf-8 +# frozen_string_literal: true module Engine2 E2DB.create_table :files do primary_key :id String :name, size: 100, null: false @@ -26,10 +27,10 @@ sortable searchable :name, :owner, :model, :field search_live on_change :model do |req, value| - # action.parent.*.assets[:model].select(:field).where(model: value).all.map{|rec|f = rec.values[:field]; [f, f]} + # node.parent.*.assets[:model].select(:field).where(model: value).all.map{|rec|f = rec.values[:field]; [f, f]} # render :field, list: {a: 1, b: 2}.to_a end end end \ No newline at end of file