File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class NamespaceSettings < DynamicSettingsNode
18
18
register :site_title_image , "" , :string_symbol_or_proc
19
19
20
20
# Set the site footer text (defaults to Powered by ActiveAdmin text with version)
21
- register :footer , ""
21
+ register :footer , "" , :string_symbol_or_proc
22
22
23
23
# Set a favicon
24
24
register :favicon , false
Original file line number Diff line number Diff line change @@ -6,21 +6,17 @@ def build(namespace)
6
6
super id : "footer"
7
7
@namespace = namespace
8
8
9
- if footer ?
9
+ if footer_text . present ?
10
10
para footer_text
11
11
else
12
12
para powered_by_message
13
13
end
14
14
end
15
15
16
- def footer?
17
- @namespace . footer . present?
18
- end
19
-
20
16
private
21
17
22
18
def footer_text
23
- helpers . render_or_call_method_or_proc_on ( self , @namespace . footer )
19
+ @footer_text ||= @namespace . footer ( self )
24
20
end
25
21
26
22
def powered_by_message
You can’t perform that action at this time.
0 commit comments