We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65456de commit 02960bbCopy full SHA for 02960bb
lib/active_admin/form_builder.rb
@@ -148,14 +148,12 @@ def input_class_with_const_defined(as)
148
# use auto-loading in development environment
149
def input_class_by_trying(as)
150
begin
151
+ custom_input_class_name(as).constantize
152
+ rescue NameError
153
- custom_input_class_name(as).constantize
154
+ active_admin_input_class_name(as).constantize
155
rescue NameError
- begin
- active_admin_input_class_name(as).constantize
156
- rescue NameError
157
- standard_input_class_name(as).constantize
158
- end
+ standard_input_class_name(as).constantize
159
end
160
161
0 commit comments