module Enumerize::ActiveModelAttributesSupport
Public Instance Methods
enumerize(name, options={})
click to toggle source
Calls superclass method
# File lib/enumerize/activemodel.rb, line 5 def enumerize(name, options={}) super _enumerize_module.dependent_eval do if self.included_modules.include? ::ActiveModel::Attributes include InstanceMethods attribute name, Enumerize::ActiveModelAttributesSupport::Type.new(enumerized_attributes[name]) end end end