engine/lib/generators/locomotive/install/install_generator.rb

13 lines
293 B
Ruby
Raw Normal View History

module Locomotive
class InstallGenerator < Rails::Generators::Base
def self.source_root
@_locomotive_source_root ||= File.expand_path("../templates", __FILE__)
end
def copy_initializer
template "locomotive.rb", "config/initializers/locomotive.rb"
end
end
end