Sha256: b01eb5896d795d23fa5dfc36998488b8b4c32be0ccde4cb094c90b64ed064817

Contents?: true

Size: 829 Bytes

Versions: 2

Compression:

Stored size: 829 Bytes

Contents

module SpreeProductHoverZoom
  module Generators
    class InstallGenerator < Rails::Generators::Base

      def add_javascripts
        append_file 'vendor/assets/javascripts/spree/frontend/all.js', "//= require drift.min\n"
        append_file 'vendor/assets/javascripts/spree/frontend/all.js', "//= require luminous\n"
        append_file 'vendor/assets/javascripts/spree/frontend/all.js', "//= require spree/frontend/spree_product_hover_zoom\n"
      end

      def add_stylesheets
        inject_into_file 'vendor/assets/stylesheets/spree/frontend/all.css', " *= require luminous-basic\n", :before => /\*\//, :verbose => true
        inject_into_file 'vendor/assets/stylesheets/spree/frontend/all.css', " *= require spree/frontend/spree_product_hover_zoom\n", :before => /\*\//, :verbose => true
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_product_hover_zoom-1.0.3 lib/generators/spree_product_hover_zoom/install/install_generator.rb
spree_product_hover_zoom-1.0.2 lib/generators/spree_product_hover_zoom/install/install_generator.rb