Commit 06046f9d authored by Ondřej Ezr's avatar Ondřej Ezr
Browse files

using presenters

parent 77f8cc1a
Pipeline #12 failed with stage
......@@ -3,8 +3,8 @@ require 'money'
require 'azahara_schema_currency/currency_format'
require 'azahara_schema_currency/currency_attribute'
require 'azahara_schema_currency/attribute_formatter_patch'
AzaharaSchema::AttributeFormatter.__send__('prepend', AzaharaSchemaCurrency::AttributeFormatterPatch)
require 'azahara_schema_currency/presenter_patch'
AzaharaSchema::Presenter.__send__('prepend', AzaharaSchemaCurrency::PresenterPatch)
require 'azahara_schema_currency/association_attribute_patch'
AzaharaSchema::AssociationAttribute.__send__('prepend', AzaharaSchemaCurrency::AssociationAttributePatch)
......
module AzaharaSchemaCurrency
module AttributeFormatterPatch
module PresenterPatch
def format_value_html(attribute, unformated_value, **options)
case attribute.type
......
......@@ -79,7 +79,7 @@ module EgovUtils
def find_kerberos_user
return nil unless internal_network? && EgovUtils::AuthSource.kerberos_providers.any? && request.env['HTTP_REMOTE_USER'].present?
username = request.env['HTTP_REMOTE_USER'].split('@')[0]
logger.info(" Trying kerberos: #{username}") if logger
logger.info(" Trying kerberos: #{username} from (#{request.env['HTTP_REMOTE_USER']})") if logger
attrs = EgovUtils::AuthSource.find_kerberos_user(username)
if attrs
user = User.active.find_by(login: attrs[:login])
......
module EgovUtils
VERSION = '0.4.14'
VERSION = '0.4.15'
end
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment