Sha256: 0513de6bdd0b40aff0684a121919c3e39666c76acae05f113f340d041d863633

Contents?: true

Size: 375 Bytes

Versions: 7

Compression:

Stored size: 375 Bytes

Contents

module ActiveHook
  module App
    class Config < ActiveHook::BaseConfig
      OTHER_DEFAULTS = {
        validation_path: '/hooks/validate',
        creation_path: '/hooks'
      }.freeze

      attr_accessor :validation_path, :creation_path

      def initialize
        super
        OTHER_DEFAULTS.each { |key, value| send("#{key}=", value) }
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
activehook-0.1.9 lib/activehook/app/config.rb
activehook-0.1.8 lib/activehook/app/config.rb
activehook-0.1.7 lib/activehook/app/config.rb
activehook-0.1.6 lib/activehook/app/config.rb
activehook-0.1.5 lib/activehook/app/config.rb
activehook-0.1.4 lib/activehook/app/config.rb
activehook-0.1.3 lib/activehook/app/config.rb