A cloudinary extension for spree commerce
Last updated on: August 20 at 03:28 PM
source code bug trackerThis is a cloudinary extension for spree based out of carrierwave. It uses carrierwave's paperclip adapter and rewires paperclip calls to carrierwave in image decorator. Inspired from this cloudinary spree extension with specific fixes for Rails 5 and Spree 3.1.0
Add this extension to your Gemfile with this line:
ruby
gem 'spree_cloudinary', github: 'madhu314/spree_cloudinary'
Install the gem using Bundler:
ruby
bundle install
Copy & run migrations
ruby
bundle exec rails g spree_cloudinary:install
Restart your server
If your server was running, restart it so that it can find the assets properly.
First bundle your dependencies, then run rake
. rake
will default to building the dummy app if it does not exist, then it will run specs. The dummy app can be regenerated by using rake test_app
.
bundle
bundle exec rake
When testing your applications integration with this extension you may use it's factories. Simply add this require statement to your spec_helper:
require 'spree_cloudinary/factories'
Copyright (c) 2017 Madhusudhan Sambojhu, released under the New BSD License
tags | spree versions |
---|---|
master | >= 3.1.0, < 4.0 |