class SpreeGladly::Generators::InstallGenerator

Public Class Methods

source_paths() click to toggle source
# File lib/generators/spree_gladly/install/install_generator.rb, line 6
def self.source_paths
  paths = superclass.source_paths
  paths << File.expand_path('templates', __dir__)
  paths.flatten
end

Public Instance Methods

copy_initializer() click to toggle source
# File lib/generators/spree_gladly/install/install_generator.rb, line 12
def copy_initializer
  template 'config/initializers/spree_gladly.rb', 'config/initializers/spree_gladly.rb'
end