mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 03:37:56 +01:00
Add Site settings > General (#133)
This commit is contained in:
committed by
GitHub
parent
bdc4004e4a
commit
35831b9801
@@ -27,4 +27,10 @@ module ApplicationHelper
|
||||
return
|
||||
end
|
||||
end
|
||||
|
||||
def add_subdomain_to(url_helper, resource=nil, options={})
|
||||
options[:subdomain] = Current.tenant_or_raise!.subdomain if Rails.application.multi_tenancy?
|
||||
|
||||
resource ? url_helper.call(resource, options) : url_helper.call(options)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user