Stored procedure models for ActiveRecord. I work in an environment where stored procedures are used extensively. Many of these stored procedures implement business rules for inserting records and quite a few parameters. I needed a better way to models is objects than the current MO which was to concatenate strings can call the ActiveRecord::Base.connection.execute
directly. This a very early version and right now only supports Rails 3.2 with Mysql.
Add this line to your application's Gemfile:
gem 'spare'
And then execute:
$ bundle
Or install it yourself as:
$ gem install spare
TODO: Write usage instructions here
- Fork it ( https://github.com/[my-github-username]/spare/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request