Sha256: 891750bf07ee0169b22047d2abfd7c71c0d7bbe569b41485a9add379e49cc041
Contents?: true
Size: 438 Bytes
Versions: 1
Compression:
Stored size: 438 Bytes
Contents
module Middleman module Blog module Similar class ResourceListManipulator attr_reader :article, :app, :db def initialize(app, db) @app = app @db = db end def manipulate_resource_list(resources) resources.each { |res| res.add_metadata locals: { similar_db: @db } } @db.store_articles resources resources end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
middleman-blog-similar-2.0.1 | lib/middleman-blog-similar/resource_list_manipulator.rb |