Flowdock
method

decorate_matching_attribute_types

Importance_0
v5.0.0.1 - Show latest stable - 0 notes - Class: ClassMethods
decorate_matching_attribute_types(matcher, decorator_name, &block) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/attribute_decorators.rb, line 17
      def decorate_matching_attribute_types(matcher, decorator_name, &block)
        reload_schema_from_cache
        decorator_name = decorator_name.to_s

        # Create new hashes so we don't modify parent classes
        self.attribute_type_decorations = attribute_type_decorations.merge(decorator_name => [matcher, block])
      end
Register or log in to add new notes.