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