lib/locomotive/mounter/reader/api/content_entries_reader.rb
# Add a content entry for a content type.
#
# @param [ Object ] content_type The content type
# @param [ Hash ] attributes The attributes of the content entry
#
# @return [ Object] The newly created content entry
#
Add a content entry for a content type.
Add a content entry for a content type .
def add(content_type, attributes)
            _attributes = self.filter_attributes(content_type, attributes)
            entry = content_type.build_entry(_attributes)
            key = File.join(content_type.slug, entry._slug)
            self.items[key] = self.ids[entry._id] = entry
          end
def add ( content_type , attributes ) _attributes = self . filter_attributes ( content_type , attributes ) entry = content_type . build_entry ( _attributes ) key = File . join ( content_type . slug , entry . _slug ) self . items [ key ] = self . ids [ entry . _id ] = entry end
Add a content entry for a content type.
Add a content entry for a content type .
The newly created content entry
The newly created content entry
 Object
content_type
<not_specific>
attributes
<not_specific>
<not_specific>
attributes The attributes of the content entry
attributes The attributes of the content entry