Sha256: 9ce8b8d224c59284c7a02c85bce5da8f5e115581fc5049c7fe4f717912d48904

Contents?: true

Size: 566 Bytes

Versions: 50

Compression:

Stored size: 566 Bytes

Contents

module Kuhsaft

  class ImageSizeDelegator
    def method_missing(method, *args, &block)
      Kuhsaft::ImageSize.send(method, *args, &block)
    rescue NoMethodError
      super
    end
  end

  class Engine < ::Rails::Engine
    isolate_namespace Kuhsaft

    config.i18n.fallbacks = [:de]
    config.i18n.load_path += Dir[Kuhsaft::Engine.root.join('config', 'locales', '**', '*.{yml}').to_s]

    # defaults to nil
    config.sublime_video_token = nil

    # delegate image size config to ImageSize class
    config.image_sizes = ImageSizeDelegator.new
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
kuhsaft-1.2.3 lib/kuhsaft/engine.rb
kuhsaft-1.2.2 lib/kuhsaft/engine.rb
kuhsaft-1.2.1 lib/kuhsaft/engine.rb
kuhsaft-1.2.0 lib/kuhsaft/engine.rb
kuhsaft-1.1.1 lib/kuhsaft/engine.rb
kuhsaft-1.1.0 lib/kuhsaft/engine.rb
kuhsaft-1.0.3 lib/kuhsaft/engine.rb
kuhsaft-1.0.2 lib/kuhsaft/engine.rb
kuhsaft-1.0.1 lib/kuhsaft/engine.rb
kuhsaft-1.0.0 lib/kuhsaft/engine.rb