Sha256: c597aab9b632ffc4a272d62288872f74312e50a6ebe83db4d0de36528a801460
Contents?: true
Size: 725 Bytes
Versions: 1
Compression:
Stored size: 725 Bytes
Contents
require 'lanes/access/extension' module Skr class Extension < Lanes::Extensions::Definition identifier "skr" self.uses_pub_sub = true root_path Pathname.new(__FILE__).dirname.join("..","..").expand_path components "record-finder", "select-field" def client_bootstrap_data(view) gl_accounts = Skr::GlAccount.all.as_json { default_gl_account_ids: Hash[ Skr.config.default_gl_accounts.map{ |code,number| account = gl_accounts.detect{|gla|gla['number'] == number} [code, account ? account['id'] : 0] }], gl_accounts: gl_accounts } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stockor-0.1.8 | lib/skr/extension.rb |