SixArm.com » Ruby » ActiveRecord singleton object for Rails
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.codeclimate/badges
doc
lib
test
.codeclimate.yml
.document
.gemtest
.gitattributes
.gitignore
.rspec
.travis.yml
CHANGES.md
CONTRIBUTING.md
LICENSE.md
README.md
Rakefile
VERSION
sixarm_ruby_active_record_singleton-1.0.4-sha512.txt
sixarm_ruby_active_record_singleton-1.0.4.gem
sixarm_ruby_active_record_singleton-1.0.6.gem
sixarm_ruby_active_record_singleton.gemspec

README.md

SixArm.com → Ruby →
ActiveRecord singleton object for Rails

Introduction

ActiveRecord Singleton object for Ruby On Rails.

This is useful if you want to ensure there is only one occurance of a model.

For docs go to http://sixarm.com/sixarm_ruby_active_record_singleton/doc

Want to help? We're happy to get pull requests.

Install

To install using a Gemfile, add this:

gem "sixarm_ruby_active_record_singleton", ">= 1.0.6", "< 2"

To install using the command line, run this:

gem install sixarm_ruby_active_record_singleton -v ">= 1.0.6, < 2"

To install using the command line with high security, run this:

wget http://sixarm.com/sixarm.pem
gem cert --add sixarm.pem && gem sources --add http://sixarm.com
gem install sixarm_ruby_active_record_singleton -v ">= 1.0.6, < 2" --trust-policy HighSecurity

To require the gem in your code:

require "sixarm_ruby_active_record_singleton"