Menu item with Accout
This commit is contained in:
@@ -3,5 +3,7 @@ class Account < ApplicationRecord
|
||||
|
||||
has_many :menu_items
|
||||
# belongs_to :lookup , :class_name => "Lookup"
|
||||
|
||||
def self.collection
|
||||
Account.select("id, title").map { |e| [e.title, e.id] }
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user