houdini/lib/generators/overrides/rails/plugin/plugin_builder.rb

25 lines
569 B
Ruby
Raw Permalink Normal View History

# frozen_string_literal: true
2020-06-12 20:03:43 +00:00
# License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later
# Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE
require 'rails/generators/rails/plugin/plugin_generator'
class PluginBuilder < Rails::PluginBuilder
def license
template "LICENSE"
template "AGPL-3.0.txt"
template "LGPL-3.0.txt"
template "GPL-3.0.txt"
end
end
module Rails
module Generators
class PluginGenerator
def source_paths
[File.expand_path("templates", __dir__)]
end
end
end
end