Sha256: 1567f5fc89a3cc1edb2f1533fd28f5d18fc5b92f71efe27720ae97d31af9dfab

Contents?: true

Size: 448 Bytes

Versions: 6

Compression:

Stored size: 448 Bytes

Contents

class Cloudinary::Railtie < Rails::Railtie
  rake_tasks do
    Dir[File.join(File.dirname(__FILE__),'../tasks/**/*.rake')].each { |f| load f }
  end
  config.after_initialize do |app|
    ActiveSupport.on_load(:action_view) do
      ActionView::Base.send :include, CloudinaryHelper
    end
  end

  ActiveSupport.on_load(:action_controller_base) do
    ActionController::Base.send :include, Cloudinary::CloudinaryController
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cloudinary-2.2.0 lib/cloudinary/railtie.rb
cloudinary-2.1.2 lib/cloudinary/railtie.rb
cloudinary-2.0.2 lib/cloudinary/railtie.rb
cloudinary-2.0.1 lib/cloudinary/railtie.rb
cloudinary-2.0.0 lib/cloudinary/railtie.rb
cloudinary-1.29.0 lib/cloudinary/railtie.rb