Sha256: 5c8de2fad4094bddf205dd8a1f039e6070cef34c3f279b7f57aaac88eacb9480

Contents?: true

Size: 543 Bytes

Versions: 1

Compression:

Stored size: 543 Bytes

Contents

module Rails
  module Generators
    class QueryGenerator < NamedBase
      source_root File.expand_path("templates", __dir__)

      def create_query_file
        template "query.sql",
          File.join(AppQuery.configuration.query_path, class_path, "#{file_name}.sql")

        # in_root do
        #  if behavior == :invoke && !File.exist?(application_mailbox_file_name)
        #    template "application_mailbox.rb", application_mailbox_file_name
        #  end
        # end
      end

      hook_for :test_framework
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
appquery-0.2.0 lib/rails/generators/query/query_generator.rb