Class: Spree::Backend::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/spree/backend/install/install_generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_paths ⇒ Object



7
8
9
10
11
12
13
# File 'lib/generators/spree/backend/install/install_generator.rb', line 7

def self.source_paths
  [
    File.expand_path('templates', __dir__),
    File.expand_path('../templates', "../#{__FILE__}"),
    File.expand_path('../templates', "../../#{__FILE__}")
  ]
end

Instance Method Details

#install ⇒ Object



15
16
17
18
# File 'lib/generators/spree/backend/install/install_generator.rb', line 15

def install
  template 'vendor/assets/javascripts/spree/backend/all.js'
  template 'vendor/assets/stylesheets/spree/backend/all.css'
end