No commit activity in last 3 years
No release in over 3 years
Simple Hstore Accessor extension for Rails 3
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.0.2
~> 1.7
>= 0
>= 0
>= 2.14.0

Runtime

< 5.0, >= 3.1
 Project Readme

SimpleHstoreAccessor

Dolly

Simple Hstore Accessor allows you to treat fields on an hstore column as though they were actual columns in Rails 3.

Installation

Add this line to your application's Gemfile:

gem "simple_hstore_accessor"

And then execute:

$ bundle

Or install it yourself as:

$ gem install simple_hstore_accessor

Setup

The store_accessor method accepts the name of the hstore column you'd like to use and an array representing fields to be stored in that column.

class Product < ActiveRecord::Base
  store_accessor :options, :color, :price
end

Contributing

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