RubyGems.org

AttributeDelegator provides a class method to ActiveRecord models that dynamically generates getter/setter to treat the attributes of a has_one model like native attributes. This is particularly useful because it allows the delegated attributes to be assigned via model.attributes= {}, such as by a form submission.

installgem install attribute_delegator -v 0.0.1
Authors

Clif Reeder

2,001 total downloads 802 for this version
Owners

0d19ef58f9c0639359101db8555ae028

Gemfile
gem "attribute_delegator", "~> 0.0.1"
Versions
  1. 0.0.2 January 16, 2012
  2. 0.0.1 January 16, 2012
Development Dependencies
  1. sqlite3 >= 0