update form attr name to attr id to instances
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
class MenuItemAttribute < ApplicationRecord
|
||||
validates_presence_of :attribute_type, :name, :value
|
||||
def self.collection
|
||||
MenuItemAttribute.select("name").map { |e| [e.name, e.name] }
|
||||
MenuItemAttribute.select("id, name").map { |e| [e.name, e.id] }
|
||||
# MenuItemAttribute.select("name").map { |e| [e.name, e.name] }
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user