Sha256: fed93ffcead884a8fedb6f86e8c50cebf3dcf4315a60c85daf19157bd40cbc42

Contents?: true

Size: 1.05 KB

Versions: 3

Compression:

Stored size: 1.05 KB

Contents

# SimpleHstoreAccessor

[![Dolly](http://dolly.railsc.ru/badges/abak-press/simple_hstore_accessor/master)](http://dolly.railsc.ru/projects/125/builds/latest/?ref=master)

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:

```ruby
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.

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

## Contributing
1. [Fork it](https://github.com/abak-press/simple_hstore_accessor/fork)
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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
simple_hstore_accessor-0.3.1 README.md
simple_hstore_accessor-0.2.0 README.md
simple_hstore_accessor-0.1.0 README.md