Let redis attrbitues being rails attr_accessible attrbiutes, which can be use to connect to simple form
Add this line to your application's Gemfile:
gem 'attr_access_redis'
And then execute:
$ bundle
Or install it yourself as:
$ gem install attr_access_redis
Add the following code to your model:
class News < ActiveRecord::Base
include AttrAccessRedis:Redis:AttrAccess
attr_access_redis :attribute, :default => 1
end
Use it in simpler form
redis_attribute #return value
redis_attribute= #assign value
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request