class Locomotive::Wagon::ContentTypeWithOnlyRelationshipsDecorator

Public Instance Methods

__attributes__() click to toggle source
# File lib/locomotive/wagon/decorators/content_type_decorator.rb, line 99
def __attributes__
  %i(name slug fields)
end
fields() click to toggle source
# File lib/locomotive/wagon/decorators/content_type_decorator.rb, line 103
def fields
  @fields ||= __getobj__.fields.associations.map { |f| ContentTypeFieldDecorator.new(f) }
end