Menu Item instances and OQS json saving

This commit is contained in:
PhyoTheingi
2017-06-03 17:09:56 +06:30
parent 2716b913f2
commit a01c4bd9cf
12 changed files with 24 additions and 27 deletions

View File

@@ -1,4 +1,6 @@
class MenuItemAttribute < ApplicationRecord
validates_presence_of :attribute_type, :name, :value
def self.collection
MenuItemAttribute.select("id, name").map { |e| [e.name, e.id] }
end
end