Module: Filepress::Model
- Defined in:
- lib/filepress/model.rb
Instance Method Summary collapse
Instance Method Details
#filepress(from: nil, glob: "*.md", key: :slug, body: :body, destroy_stale: true) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/filepress/model.rb', line 3 def filepress(from: nil, glob: "*.md", key: :slug, body: :body, destroy_stale: true) class_attribute :filepress_options, instance_accessor: false, default: {} self. = { from: from || "app/content/#{name.underscore.pluralize}", glob: glob, key: key, body: body, destroy_stale: destroy_stale } end |