mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 03:06:14 +02:00
parent
d85e57d800
commit
7723a30d1b
17 changed files with 240 additions and 200 deletions
|
@ -2,6 +2,7 @@ module Admin
|
|||
class RegistrarsController < BaseController
|
||||
load_and_authorize_resource
|
||||
before_action :set_registrar, only: [:show, :edit, :update, :destroy]
|
||||
helper_method :registry_vat_rate
|
||||
|
||||
def index
|
||||
@q = Registrar.joins(:accounts).ordered.search(params[:q])
|
||||
|
@ -74,5 +75,9 @@ module Admin
|
|||
:billing_email,
|
||||
:language)
|
||||
end
|
||||
|
||||
def registry_vat_rate
|
||||
Registry.current.vat_rate
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue