RubyGems Navigation menu

attribute_delegator 0.0.1

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.

Gemfile
          gem 'attribute_delegator', '~> 0.0.1'
  
  
  
  
  
  
  

install
          gem install attribute_delegator -v 0.0.1
  
  
  
  
  
  
  

Authors:

  • Clif Reeder

Owners:

Total downloads 4,000

For this version 1,460

Required Ruby Version: None

Links:

Versions:

  1. 0.0.2 - January 16, 2012 (6 KB)
  2. 0.0.1 - January 16, 2012 (6 KB)

Development Dependencies: