Module: TracksAttributes::ClassMethods
- Included in:
- Base
- Defined in:
- lib/tracks_attributes.rb
Instance Method Summary collapse
-
#tracks_attributes(options = {}) ⇒ Object
Call this class method to begin tracking attributes on a class.
Instance Method Details
#tracks_attributes(options = {}) ⇒ Object
Call this class method to begin tracking attributes on a class.
Note:
Classes that include TracksAttributes will not be extended unless
until this method is called.
69 70 71 72 73 74 75 |
# File 'lib/tracks_attributes.rb', line 69 def tracks_attributes(={}) return if respond_to? :attr_info_for # prevent recursion include TracksAttributesInternal enable_validations if [:validates] self end |