SsManager
session manager for object-oriented manage session and destroy sessions by session destroyer on server start
recommend use with gem 'activerecord-session_store'
такой менеджер сессии - удобная штука на мой взгляд, если нужно много где инициализировать абстрактные материалы хранимые в сесии и всё такое, то объектно-ориентированный подход как нельзя кстати, к тому же это элегантно.
привет выживающим в россии, от выживающего в москве
Installation
Add this line to your application's Gemfile:
gem 'ss_manager'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ss_manager
to install magic files in your project
s_s_manager:install
before use recommended
gem 'activerecord-session_store'
don't forget
rails g active_record:session_migration
check docs for it http://www.rubydoc.info/gems/activerecord-session_store/1.0.0
Usage
s_s_manager:install
after that u will see in config/initializers session_manager.rb
so, write it up !
$ss_manager
is your global Object-Oriented Friend ! and they defs - is command ad conquer on session on fields of controllers.
Let's do it !
Development
After checking out the repo, run bin/setup to install dependencies. You can also run bin/console for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/ss_manager.
License
The gem is available as open source under the terms of the MIT License.