Module: ActiveCopy::Attributes
Overview
Attribute storage and handling for ActiveCopy
models.
Defined Under Namespace
Modules: ClassMethods
Constant Summary collapse
- DEFAULT_PATH =
"public/#{self.class.name.parameterize.pluralize}"
- DEFAULT_ATTRS =
[:layout]
Instance Method Summary collapse
-
#attributes ⇒ Object
Take YAML front matter given by id.
Instance Method Details
#attributes ⇒ Object
Take YAML front matter given by id.
43 44 45 |
# File 'lib/active_copy/attributes.rb', line 43 def attributes @attributes ||= yaml_front_matter.with_indifferent_access end |