Module: ActiveCopy::Attributes

Extended by:
ActiveSupport::Concern
Included in:
Base
Defined in:
lib/active_copy/attributes.rb

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

Instance Method Details

#attributesObject

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