Flowdock
method

decorate_attribute_type

Importance_0
v4.2.7 - Show latest stable - 0 notes - Class: ClassMethods
decorate_attribute_type(column_name, 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 11
      def decorate_attribute_type(column_name, decorator_name, &block)
        matcher = ->(name, _) { name == column_name.to_s }
        key = "_#{column_name}_#{decorator_name}"
        decorate_matching_attribute_types(matcher, key, &block)
      end
Register or log in to add new notes.