summaryrefslogtreecommitdiff
path: root/billing/script
diff options
context:
space:
mode:
authorjessib <jessib@leap.se>2013-03-12 13:32:46 -0700
committerAzul <azul@leap.se>2013-07-17 10:46:25 +0200
commit3ffac4e77a118ee6ec7d369b0250c11830c2f7e0 (patch)
tree10bcae72b62b63cd8da65e93fb0c90f2c107fc3b /billing/script
parentfe7a5ac0776e1bd7baf36382600e265def901e51 (diff)
Basic functionality for one time transactions using Braintree's transparent redirect API based from https://github.com/braintree/braintree_ruby_examples/tree/master/rails3_tr_checkout (very little changes were required)
Diffstat (limited to 'billing/script')
-rwxr-xr-xbilling/script/rails8
1 files changed, 8 insertions, 0 deletions
diff --git a/billing/script/rails b/billing/script/rails
new file mode 100755
index 0000000..8bd9c0a
--- /dev/null
+++ b/billing/script/rails
@@ -0,0 +1,8 @@
+#!/usr/bin/env ruby
+# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
+
+ENGINE_ROOT = File.expand_path('../..', __FILE__)
+ENGINE_PATH = File.expand_path('../../lib/leap_web_billing/engine', __FILE__)
+
+require 'rails/all'
+require 'rails/engine/commands'