Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add Cloudinary as Rails::Engine to allow asset pipeline to find it.

  • Loading branch information...
commit 65a9267b5d1c512b495d3bb36bad4355b16b2174 1 parent a03f3a9
Tal Lev-Ami authored
Showing with 3 additions and 0 deletions.
  1. +1 −0  lib/cloudinary.rb
  2. +2 −0  lib/cloudinary/engine.rb
View
1  lib/cloudinary.rb
@@ -14,6 +14,7 @@
require "cloudinary/helper" if defined?(::ActionView::Base)
require "cloudinary/controller" if defined?(::ActionController::Base)
require "cloudinary/railtie" if defined?(Rails) && defined?(Rails::Railtie)
+require "cloudinary/engine" if defined?(Rails) && defined?(Rails::Engine)
module Cloudinary
@@config = nil
View
2  lib/cloudinary/engine.rb
@@ -0,0 +1,2 @@
+class Cloudinary::Engine < Rails::Engine
+end
Please sign in to comment.
Something went wrong with that request. Please try again.