account model updated

This commit is contained in:
Aung Myo
2017-06-07 17:13:27 +06:30
parent 9ad04323f0
commit fd1c53432c

View File

@@ -2,7 +2,7 @@ class Account < ApplicationRecord
validates_presence_of :title, :account_type
has_many :menu_items
# belongs_to :lookup , :class_name => "Lookup"
def self.collection
Account.select("id, title").map { |e| [e.title, e.id] }
end