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