mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 18:29:40 +02:00
8 lines
311 B
Ruby
8 lines
311 B
Ruby
class Admin::ZonefilesController < ApplicationController
|
|
# TODO: Refactor this
|
|
# rubocop:disable Metrics/MethodLength
|
|
def index
|
|
@zonefile = ActiveRecord::Base.connection.execute("select generate_zonefile('ee')")[0]['generate_zonefile']
|
|
send_data @zonefile, filename: 'zonefile-1000.txt'
|
|
end
|
|
end
|