Sha256: ab3407c10cd07ecce2bd50a87e08eea054a939de68dd65e6dd4ff5f687b9cdfc

Contents?: true

Size: 389 Bytes

Versions: 2

Compression:

Stored size: 389 Bytes

Contents

module RocketPants
  class Railtie < Rails::Railtie

    config.rocket_shorts = ActiveSupport::OrderedOptions.new
    config.rocket_shorts.header_format = /application\/vnd\.example\.v/

    initializer "rocket_shorts.configuration" do |app|
      rs_config                       = app.config.rocket_shorts
      RocketShorts.header_format      = rs_config.header_format
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rocket_shorts-0.0.2 lib/rocket_shorts/railtie.rb
rocket_shorts-0.0.1 lib/rocket_shorts/railtie.rb