Merge pull request #258 from internetee/registry-186

Registry 186
This commit is contained in:
Timo Võhmar 2016-11-25 15:31:58 +02:00 committed by GitHub
commit a748b30c41
144 changed files with 2950 additions and 954 deletions

View file

@ -3,7 +3,7 @@ class Admin::ZonefilesController < ApplicationController
# TODO: Refactor this
def create
if ZonefileSetting.pluck(:origin).include?(params[:origin])
if ZonefileSetting.origins.include?(params[:origin])
@zonefile = ActiveRecord::Base.connection.execute(
"select generate_zonefile('#{params[:origin]}')"