Skip to content

Commit 02960bb

Browse files
committed
one too many begin/end blocks
1 parent 65456de commit 02960bb

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

lib/active_admin/form_builder.rb

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,14 +148,12 @@ def input_class_with_const_defined(as)
148148
# use auto-loading in development environment
149149
def input_class_by_trying(as)
150150
begin
151+
custom_input_class_name(as).constantize
152+
rescue NameError
151153
begin
152-
custom_input_class_name(as).constantize
154+
active_admin_input_class_name(as).constantize
153155
rescue NameError
154-
begin
155-
active_admin_input_class_name(as).constantize
156-
rescue NameError
157-
standard_input_class_name(as).constantize
158-
end
156+
standard_input_class_name(as).constantize
159157
end
160158
end
161159
rescue NameError

0 commit comments

Comments
 (0)