Skip to content

Commit a1b8552

Browse files
committed
Get the view factory from the namespace.
Within the config, each namespace can initialize its own view factory which makes it trivial to have different views depending on the current namespace. Documentation coming soon :)
1 parent 2829d77 commit a1b8552

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/active_admin/view_helpers/view_factory_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module ViewHelpers
33
module ViewFactoryHelper
44

55
def view_factory
6-
active_admin_application.view_factory
6+
active_admin_namespace.view_factory
77
end
88

99
end

0 commit comments

Comments
 (0)