Class: CustomFields::Field

Inherits:
Object
  • Object
show all
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_classObject



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_typeObject



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