Sha256: 1ef8be885a18e5cf924c65bac38ba255ea7550ee71d9eab57a8a56ca07d0b215

Contents?: true

Size: 501 Bytes

Versions: 7

Compression:

Stored size: 501 Bytes

Contents

module Troy
  def self.configuration
    @configuration ||= Configuration.new
  end

  def self.configure(&block)
    yield configuration
  end

  class Configuration < OpenStruct
    def assets
      @assets ||= Configuration.new({
        compress_html: true,
        compress_css: true,
        compress_js: true,
        precompile: []
      })
    end

    def i18n
      @i18n ||= Configuration.new.tap do |config|
        config.load_path = ["config/locales/*.yml"]
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
troy-0.0.27 lib/troy/configuration.rb
troy-0.0.26 lib/troy/configuration.rb
troy-0.0.25 lib/troy/configuration.rb
troy-0.0.24 lib/troy/configuration.rb
troy-0.0.23 lib/troy/configuration.rb
troy-0.0.22 lib/troy/configuration.rb
troy-0.0.21 lib/troy/configuration.rb