Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Ministerstvo spravedlnosti
eGovernment utilities
Commits
06046f9d
Commit
06046f9d
authored
Sep 19, 2018
by
Ondřej Ezr
Browse files
using presenters
parent
77f8cc1a
Pipeline
#12
failed with stage
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lib/azahara_schema_currency.rb
View file @
06046f9d
...
...
@@ -3,8 +3,8 @@ require 'money'
require
'azahara_schema_currency/currency_format'
require
'azahara_schema_currency/currency_attribute'
require
'azahara_schema_currency/
attribute_format
ter_patch'
AzaharaSchema
::
AttributeFormat
ter
.
__send__
(
'prepend'
,
AzaharaSchemaCurrency
::
AttributeFormat
terPatch
)
require
'azahara_schema_currency/
presen
ter_patch'
AzaharaSchema
::
Presen
ter
.
__send__
(
'prepend'
,
AzaharaSchemaCurrency
::
Presen
terPatch
)
require
'azahara_schema_currency/association_attribute_patch'
AzaharaSchema
::
AssociationAttribute
.
__send__
(
'prepend'
,
AzaharaSchemaCurrency
::
AssociationAttributePatch
)
...
...
lib/azahara_schema_currency/
attribute_format
ter_patch.rb
→
lib/azahara_schema_currency/
presen
ter_patch.rb
View file @
06046f9d
module
AzaharaSchemaCurrency
module
AttributeFormat
terPatch
module
Presen
terPatch
def
format_value_html
(
attribute
,
unformated_value
,
**
options
)
case
attribute
.
type
...
...
lib/egov_utils/user_utils/application_controller_patch.rb
View file @
06046f9d
...
...
@@ -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
])
...
...
lib/egov_utils/version.rb
View file @
06046f9d
module
EgovUtils
VERSION
=
'0.4.1
4
'
VERSION
=
'0.4.1
5
'
end
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment