Sha256: c202fff41bedf54811fcee81dd9a470d30387ef1fb38ed2fa169585189585cdb

Contents?: true

Size: 418 Bytes

Versions: 1

Compression:

Stored size: 418 Bytes

Contents

class Railtie < Rails::Railtie
  initializer "buzz_image.initialize_buzz_image_helper" do |app|
    ActiveSupport.on_load(:action_view) do
      include BuzzImage
    end
  end

  initializer "buzz_image.configuration" do |app|
    app.config.buzz_image = BuzzImage::Configuration.new
    # Clear Cache
    FileUtils.rm_rf("#{Rails.application.root}/tmp/cache/assets") if Rails.env.development?
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
buzz_image-0.0.1 lib/buzz_image/railtie.rb