method

validate_column_size

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: Encryption
validate_column_size(attribute_name) 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/encryption/encryptable_record.rb, line 138
          def validate_column_size(attribute_name)
            if limit = columns_hash[attribute_name.to_s]&.limit
              validates_length_of attribute_name, maximum: limit
            end
          end
Register or log in to add new notes.