avatar

18

add a bunch of :nodoc: declarations to clean up rdoc output

by chrisk, 28 Jul, 2007 03:35 AM
16 18  
1 module TemplatedAttribute
2   module ActiveRecordExtensions
1 module TemplatedAttribute         # :nodoc:
2   module ActiveRecordExtensions   # :nodoc:
33     
4     def self.included(base)
4     def self.included(base)       # :nodoc:
55       base.extend(ClassMethods)
66     end
77     
------
4747     end
4848     
4949     
50     module InstanceMethods
50     module InstanceMethods    # :nodoc:
5151       protected
52       def remove_unchanged_template_values
52       def remove_unchanged_template_values  # :nodoc:
5353         templated_attributes_options.each_pair do |attr_name, options|
5454           write_attribute(attr_name, nil) if read_attribute(attr_name).strip == options[:value]
5555         end