Type Attributes plugin

Plugin details

type_attributes fixes the type accessor method if "type" is a column in any model.

Websitehttp://wiki.pluginaweek.org/Type_attributes Repositoryhttp://svn.pluginaweek.org/trunk/type_attributes Author Aaron Pfeifer Tags type, attribute LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install http://svn.pluginaweek.org/trunk/type_attributes

Description
===============

In Ruby 1.8, type is a deprecated attribute replaced by the class method. However, since type is also used in class inheritance within ActiveRecord, it will not allow you to access the type attribute as defined in a model's table. Instead, it will return the actual class using the deprecated method. This bug fix accesses the actual attribute instead if type is defined as a column in the model's table.

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | Back in time (1 older version) | Last edited by: obrie572, 6 months ago