Skip to content

Commit

Permalink
Make message more generic
Browse files Browse the repository at this point in the history
  • Loading branch information
bryszard committed Nov 26, 2023
1 parent 4c24fc9 commit d869945
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/avo/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def set_related_resource
end

def missing_resource_message(resource_name)
"Missing resource detected while rendering 'field :#{resource_name}, as: :has_many'. " \
"Missing resource detected while rendering field for #{resource_name}. " \
"You can generate that resource running 'rails generate avo:resource #{resource_name.singularize}'. " \
"Alternatively use 'use_resource' option to specify the resource to be used on the field."
end
Expand Down

0 comments on commit d869945

Please sign in to comment.