= Conversions The conversions plugin does a number of things. The core functionality is the unit conversion: 1.miles.to(:kilometres) #=> 1.609344 1.pounds.to(:kilograms) #=> 0.453592 It also adds a class method to ActiveRecord::Base that allows you to define conversion methods for attributes: class Car < ActiveRecord::Base conversion_accessor :weight, :internal => :kilograms, :external => :pounds end car = Car.new(:weight => 1500) car.weight_in_pounds #=> 3306.93393 == Installation === As a gem Configure the gem in environment.rb: config.gem 'Fingertips-conversions', :lib => 'conversions', :source => 'http://gems.github.com' Install them using Rails' rake task: $ rake gems:install === In your vendor directory: script/install plugin git://github.com/Fingertips/conversions.git
Project
seamusabshere-conversions
A Ruby on Rails plugin that adds conversion capabilities to numeric objects"
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
Development
Dependencies
Project Readme