Sha256: 01b7a5ce80479dd27e4b68a09c2f123b52933b4b0e88928db35c185dde6d1852
Contents?: true
Size: 535 Bytes
Versions: 3
Compression:
Stored size: 535 Bytes
Contents
require "active_support" module Voltron class Config include ::ActiveSupport::Callbacks set_callback :generate_voltron_config, :add_flash_config def flash @flash ||= Flash.new end def add_flash_config Voltron.config.merge(flash: flash.to_h) end class Flash attr_accessor :header, :group def initialize @header ||= 'X-Flash' @group = true unless @group === false end def to_h { header: header, group: group } end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
voltron-flash-0.1.6 | lib/voltron/config/flash.rb |
voltron-flash-0.1.8 | lib/voltron/config/flash.rb |
voltron-flash-0.1.7 | lib/voltron/config/flash.rb |