Sha256: 6b5f30e9ec37c7a736a81b710fdc45c4f9e6a34a94ea27d7f182ec545480a379

Contents?: true

Size: 722 Bytes

Versions: 23

Compression:

Stored size: 722 Bytes

Contents

= Rails Time

A handler for storing TimeOfDay objects in ActiveRecord objects as sql time values.


== Installation

./script/plugin install svn://rubyforge.org/var/svn/backlog/vendor/plugins/rails_time


== Usage

Create your tables with fields with type :time and you will be able to access them as
TimeOfDay objects.

  add_column :schedule, :start_time, :time
 
  schedule = Schedule.find_first
  schedule.start_time = TimeOfDay.parse('08:34')
  schedule.price >> "08:34:00"


Creating a Money can be done from a Fixnum (dollars) or a Float (dollars.cents). To create a money
object from just cents, do Money.create_from_cents(100) 

== Feedback

Any suggestions, fixes, or improvements - lemme know, jerrett at gmail

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
backlog-0.37.2 vendor/plugins/rails_time/README
backlog-0.37.1 vendor/plugins/rails_time/README
backlog-0.36.2 vendor/plugins/rails_time/README
backlog-0.24.0 vendor/plugins/rails_time/README
backlog-0.25.0 vendor/plugins/rails_time/README
backlog-0.26.0 vendor/plugins/rails_time/README
backlog-0.28.0 vendor/plugins/rails_time/README
backlog-0.29.0 vendor/plugins/rails_time/README
backlog-0.31.0 vendor/plugins/rails_time/README
backlog-0.30.0 vendor/plugins/rails_time/README
backlog-0.31.1 vendor/plugins/rails_time/README
backlog-0.32.0 vendor/plugins/rails_time/README
backlog-0.33.0 vendor/plugins/rails_time/README
backlog-0.34.1 vendor/plugins/rails_time/README
backlog-0.33.1 vendor/plugins/rails_time/README
backlog-0.34.2 vendor/plugins/rails_time/README
backlog-0.34 vendor/plugins/rails_time/README
backlog-0.35.0 vendor/plugins/rails_time/README
backlog-0.35.2 vendor/plugins/rails_time/README
backlog-0.35.1 vendor/plugins/rails_time/README