Module: TransForms::MainModel::Active::ClassMethods
- Defined in:
- lib/trans_forms/main_model.rb
Instance Method Summary collapse
-
#main_class ⇒ Object
Returns the class of the main_model.
Instance Method Details
#main_class ⇒ Object
Returns the class of the main_model
157 158 159 160 161 162 163 164 |
# File 'lib/trans_forms/main_model.rb', line 157 def main_class @main_class ||= if _class_name.present? _class_name.constantize else main_model.to_s.classify.constantize end end |