タグ

関連タグで絞り込む (0)

  • 関連タグはありません

タグの絞り込みを解除

configに関するyutagのブックマーク (1)

  • MyGem.configure Block

    We recently enhanced Clearance with a configuration block that could be used in config/initializers/clearance.rb. I liked the way Airbrake did it and wanted to implement the same pattern: Airbrake.configure do |config| config.api_key = 'your_key_here' end module Clearance class << self attr_accessor :configuration end def self.configure self.configuration ||= Configuration.new yield(configuration)

    MyGem.configure Block
    yutag
    yutag 2019/03/14
    [rails]
  • 1