Sha256: cb7ebfbe8f922cdf92e58214878defdd5a3a7b1574dc276ca8dc0db34e79e86b
Contents?: true
Size: 1.04 KB
Versions: 8
Compression:
Stored size: 1.04 KB
Contents
#lib_dir = File.expand_path("..", __FILE__) #$LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir) require "kaui/engine" module Kaui mattr_accessor :killbill_finder mattr_accessor :account_home_path mattr_accessor :bundle_home_path mattr_accessor :invoice_home_path mattr_accessor :bundle_key_display_string mattr_accessor :creditcard_plugin_name self.killbill_finder = lambda { Kaui::Engine.config.killbill_url } self.account_home_path = lambda {|account_id| Kaui::Engine.routes.url_helpers.account_path(account_id) } self.bundle_home_path = lambda {|bundle_id| Kaui::Engine.routes.url_helpers.bundle_path(:id => bundle_id) } self.invoice_home_path = lambda {|invoice_id| Kaui::Engine.routes.url_helpers.invoice_path(:id => invoice_id) } self.bundle_key_display_string = lambda {|bundle_key| bundle_key } self.creditcard_plugin_name = lambda { nil } end # ruby-1.8 compatibility module Kernel def define_singleton_method(*args, &block) class << self self end.send(:define_method, *args, &block) end end
Version data entries
8 entries across 8 versions & 1 rubygems