Sha256: a7c33604451e20e1310409c9a274b13c48e86dc8511127d1316cc1438f7183e9
Contents?: true
Size: 683 Bytes
Versions: 10
Compression:
Stored size: 683 Bytes
Contents
module Nanoc # Nanoc::AssetDefaults represent the default attributes for all assets in # the site. If a specific asset attribute is requested, but not found, then # the asset defaults will be queried for this attribute. (If the attribute # doesn't even exist in the asset defaults, hardcoded defaults will be # used.) class AssetDefaults < Defaults # Saves the asset defaults in the database, creating it if it doesn't # exist yet or updating it if it already exists. Tells the site's data # source to save the asset defaults. def save @site.data_source.loading do @site.data_source.save_asset_defaults(self) end end end end
Version data entries
10 entries across 10 versions & 1 rubygems