Module: Shared::IsData::Metamorphosize
- Extended by:
- ActiveSupport::Concern
- Included in:
- News
- Defined in:
- app/models/concerns/shared/is_data/metamorphosize.rb
Instance Method Summary collapse
-
#metamorphosize ⇒ Object
The same object, but namespaced to the base class used many places, might be good target for optimization.
Instance Method Details
#metamorphosize ⇒ Object
Returns the same object, but namespaced to the base class used many places, might be good target for optimization.
8 9 10 11 |
# File 'app/models/concerns/shared/is_data/metamorphosize.rb', line 8 def return self if self.class.descends_from_active_record? self.becomes(self.class.base_class) end |