Sha256: ae037044a71d9302a1d13badd2cf48f75ca4b8b7ab69562a673962abd4f8e999
Contents?: true
Size: 622 Bytes
Versions: 74
Compression:
Stored size: 622 Bytes
Contents
module Pageflow # Api for plugins to contribute news items for the news collection # configured via `config.news`. Included in the Pageflow module to # provide `news_item` class method. module NewsItemApi # Add a item to the news collection configured via # `Configuration#news`. Intended to be used with Krant (see # https://github.com/codevise/krant). See Krant's readme for # details on the supported parameters. # # @since 12.2 def news_item(name, options) after_global_configure do |config| config.news.item(name, options) if config.news end end end end
Version data entries
74 entries across 74 versions & 1 rubygems