Module: LazyModelConst::ExtendedModelMixins
- Defined in:
- lib/lazy_model_const/spec.rb
Instance Method Summary collapse
- #defines_model_consts(*consts) ⇒ Object (also: #defines_model_const)
Instance Method Details
#defines_model_consts(*consts) ⇒ Object Also known as: defines_model_const
4 5 6 7 8 9 10 11 |
# File 'lib/lazy_model_const/spec.rb', line 4 def defines_model_consts(*consts) defines_consts(*consts) consts.each do |const| it "defined constant #{const} is a valid #{described_class}" do described_class.public_send(const.to_sym).should be_valid end end end |