Sha256: 75208c3631538260edf8eb5b027a5e7c7d08d9c4c2ba76987dd3bfa84ae9a64d

Contents?: true

Size: 894 Bytes

Versions: 10

Compression:

Stored size: 894 Bytes

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
kaui-0.1.9 lib/kaui.rb
kaui-0.1.8 lib/kaui.rb
kaui-0.1.7 lib/kaui.rb
kaui-0.1.6 lib/kaui.rb
kaui-0.1.5 lib/kaui.rb
kaui-0.1.4 lib/kaui.rb
kaui-0.1.3 lib/kaui.rb
kaui-0.1.2 lib/kaui.rb
kaui-0.1.0 lib/kaui.rb
kaui-0.0.9 lib/kaui.rb