Sha256: 25d70676607b17086cb96827c071e99d0022eb4f4223777811542371f9010d14

Contents?: true

Size: 462 Bytes

Versions: 1

Compression:

Stored size: 462 Bytes

Contents

module SolidusLogViewer
  module Generators
    class InstallGenerator < Rails::Generators::Base
      def add_javascripts
        append_file "vendor/assets/javascripts/spree/backend/all.js", "//= require spree/backend/solidus_log_viewer\n"
      end

      def add_stylesheets
        inject_into_file "vendor/assets/stylesheets/spree/frontend/all.css", " *= require spree/backend/solidus_log_viewer\n", before: '*/', verbose: true
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_log_viewer-1.0.0 lib/generators/solidus_log_viewer/install/install_generator.rb