Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 281 Bytes

config.md

File metadata and controls

17 lines (13 loc) · 281 Bytes

Config

The Config plug helps in adding configuration settings (#config hash attribute) to an instance of WebPipe::Conn.

require 'web_pipe'

class MyApp
  include WebPipe
  
  plug :config, WebPipe::Plugs::Config.(
    key1: :value1,
    key2: :value2
  )
end