0.0
No commit activity in last 3 years
No release in over 3 years
A convenient drop in Railtie for enabling Rack::Transaction
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

 Project Readme

Bond

Bond is a Railtie that conveniently wires up Rack::Transaction. It will handle configuring Rack::Transaction to work with ActiveRecord if available.

Installation

Add this line to your Gemfile:

gem 'bond-railtie'

and bundle up.

Usage

Bond should just work as soon as you install it using the defaults provided by Rack::Transaction. If you need to do additional configuration, you can add a Rails initializer and call Bond.setup. The method takes in a block and provides a Rack::Transaction::Configuration. For example:

Bond.setup do |config|
  config.exclude { |request| request.path =~ %r{/search}i }
end

Please refer to Rack::Transaction documentation to see additional configuration options.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request