ActAsSerializable
This tool is useful for managing the array in a text column in any database (mysql, sqlite and etc). This tool also does sensible update upon object save/create. please see the usage below.
Installation
Add this line to your application's Gemfile:
gem 'act_as_serializable'
And then execute:
$ bundle
Or install it yourself as:
$ gem install act_as_serializable
Usage
in model, for any text column for which you want it to act as array column
mention:
act_as_serializable [:col1]
for mutiple columns:
act_as_serializable [:col1, :col2]
Contributing
- Fork it ( https://github.com/pavanagrawal/act_as_serializable/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 new Pull Request act_as_serializable