houdini/lib/generators/overrides/rails/plugin/plugin_builder.rb
2020-06-15 10:26:57 -05:00

24 lines
569 B
Ruby

# frozen_string_literal: true
# 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