RubyGems.org

has_duration

0.0.6

Extends ActiveRecord to let you store time durations like '1.month' or '10.years'. It does it by providing a serializer and validator for ActiveSupport::Duration objects.

installgem install has_duration
Authors

nubis

4,259 total downloads 744 for this version
Owners

Fb95e5c103bb7ab35866b6d113ad5f7c

Gemfile
gem 'has_duration', '~> 0.0.6'
Versions
  1. 0.0.6 May 8, 2013 (6 KB)
  2. 0.0.5 May 8, 2013 (6 KB)
  3. 0.0.4 May 6, 2013 (6 KB)
  4. 0.0.3 October 15, 2012 (5.5 KB)
  5. 0.0.2 September 18, 2012 (5.5 KB)
Show all versions (6 total)
Runtime Dependencies
  1. rails ~> 3.2
Development Dependencies
  1. rspec >= 0
  2. sqlite3 >= 0