Class: CustomFields::Field
- Inherits:
-
Object
- Object
- CustomFields::Field
- Includes:
- Locomotive::Mongoid::Presenter
- Defined in:
- lib/locomotive/custom_fields.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Locomotive::Mongoid::Presenter
#as_json, #from_presenter, #to_presenter
Class Method Details
.presenter_class ⇒ Object
18 19 20 |
# File 'lib/locomotive/custom_fields.rb', line 18 def self.presenter_class Locomotive::ContentFieldPresenter end |
Instance Method Details
#class_name_to_content_type ⇒ Object
14 15 16 |
# File 'lib/locomotive/custom_fields.rb', line 14 def class_name_to_content_type self._parent.send :class_name_to_content_type, self.class_name end |