Skip to content

Commit

Permalink
info rdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinier de Lange committed Jul 28, 2010
1 parent 6fc8895 commit 5d80c8c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.rdoc
Expand Up @@ -65,7 +65,16 @@ To add dynamic_attributes to an AR model, take the following steps:
* dynamic_model.update_atribute(:field_summary, 'This is a dynamic attribute')
* dynamic_model.update_atributes(:field_summary => 'This is a dynamic attribute', :description => 'Testing')
- Set manually: dynamic_model.field_summary = 'This is a dynamic attribute'

- Get Info:
* dynamic_model.persisting_dynamic_attributes
* Returns an array of the dynamic atributes that will be persisted.
* DynamicModel.dynamic_attribute_field
* Returns the serialization attribute. You can access this serialization attribute directly if you need to.
* DynamicModel.dynamic_attribute_prefix
* Returns the method prefix of dynamic attributes, see below for more info.
* DynamicModel.destroy_dynamic_attribute_for_nil
* Returns whether dynamic attributes with null values will be persisted, see below for more info.

== Options

The has_dynamic_attribute call takes three different options:
Expand Down

0 comments on commit 5d80c8c

Please sign in to comment.