add a bunch of :nodoc: declarations to clean up rdoc output
| 16 | 18 | |
|---|---|---|
| 1 | module TemplatedAttribute | |
| 2 | module ActiveRecordExtensions | |
| 1 | module TemplatedAttribute # :nodoc: | |
| 2 | module ActiveRecordExtensions # :nodoc: | |
| 3 | 3 | |
| 4 | def self.included(base) | |
| 4 | def self.included(base) # :nodoc: | |
| 5 | 5 | base.extend(ClassMethods) |
| 6 | 6 | end |
| 7 | 7 | |
| --- | --- | |
| 47 | 47 | end |
| 48 | 48 | |
| 49 | 49 | |
| 50 | module InstanceMethods | |
| 50 | module InstanceMethods # :nodoc: | |
| 51 | 51 | protected |
| 52 | def remove_unchanged_template_values | |
| 52 | def remove_unchanged_template_values # :nodoc: | |
| 53 | 53 | templated_attributes_options.each_pair do |attr_name, options| |
| 54 | 54 | write_attribute(attr_name, nil) if read_attribute(attr_name).strip == options[:value] |
| 55 | 55 | end |
