Solidus extension that allows customers to upload their images, with admin moderation
Add solidus_customer_images to your Gemfile:
gem 'solidus_customer_images'
Bundle your dependencies and run the installation generator:
bundle
bundle exec rails g solidus_customer_images:install
For a quick implementation you may prefer to use the included Deface
overrides by customizing directives in add_form_link_to_product_page.rb setting disabled: false
.
For a more fine grained implementation you can rewrite Deface
injected partials according to needs and use them directly in views as you prefer.
See add_form_link_to_product_page.rb for details.
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, and Rubocop static code analysis. The dummy app can be regenerated by using rake test_app
.
bundle
bundle exec rake test_app # generates the dummy app
bundle exec rake # runs rubocop and rspec
When testing your applications integration with this extension you may use it's factories. Simply add this require statement to your spec_helper:
require 'solidus_customer_images/factories'
Copyright (c) 2018 Nebulab, released under the New BSD License