Module: Tire::ActiveModel::SerializerSupport
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/tire/active_model/serializer_support.rb
Instance Method Summary collapse
-
#active_model_serializer ⇒ Object
Returns a model serializer for this object considering its namespace.
- #tire_active_model_serializer ⇒ Object
Instance Method Details
#active_model_serializer ⇒ Object
Returns a model serializer for this object considering its namespace.
22 23 24 |
# File 'lib/tire/active_model/serializer_support.rb', line 22 def active_model_serializer self.tire_active_model_serializer || self.class.active_model_serializer end |
#tire_active_model_serializer ⇒ Object
8 9 10 |
# File 'lib/tire/active_model/serializer_support.rb', line 8 def tire_active_model_serializer "Tire#{self.class.name}Serializer".safe_constantize end |