Sha256: 3d3a7a2a49ff8e6e989a56680b298f564d9b9b1f71de933df64daf3a9d0cd03b
Contents?: true
Size: 783 Bytes
Versions: 3
Compression:
Stored size: 783 Bytes
Contents
module AdcurveSpree module Generators class InstallGenerator < Rails::Generators::Base def add_javascripts append_file 'vendor/assets/javascripts/spree/frontend/all.js', "//= require store/adcurve_spree\n" end def add_stylesheets inject_into_file 'vendor/assets/stylesheets/spree/frontend/all.css', " *= require store/adcurve_spree\n", :before => /\*\//, :verbose => true inject_into_file 'vendor/assets/stylesheets/spree/backend/all.css', " *= require admin/adcurve_spree\n", :before => /\*\//, :verbose => true end def add_migrations run 'bundle exec rake railties:install:migrations FROM=adcurve_spree' end def run_migrations run 'bundle exec rake db:migrate' end end end end
Version data entries
3 entries across 3 versions & 1 rubygems