Module: ModestModel::CombinedAttr

Included in:
Base
Defined in:
lib/modest_model/combined_attr.rb

Instance Method Summary collapse

Instance Method Details

#attribute(*attrs) ⇒ Object



3
4
5
6
7
# File 'lib/modest_model/combined_attr.rb', line 3

def attribute *attrs
  validations = attrs.extract_options!
  attributes *attrs
  validates *(attrs +[validations]) if validations.any?
end