This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'active_support/core_ext/class/attribute' | |
require 'active_support/concern' | |
# This module enables a simple declaration for the including ActiveRecord model | |
# class to specify one or more columns (attributes) to automatically truncate | |
# its length to a max value or as defined by the column width in your schema. | |
# | |
# Usage example: | |
# | |
# class MyModel << ActiveRecord::Base |