method

filter_and_sort_by_details

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: ActionView::FileSystemResolver
filter_and_sort_by_details(templates, requested_details) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionview/lib/action_view/template/resolver.rb, line 183
      def filter_and_sort_by_details(templates, requested_details)
        filtered_templates = templates.select do |template|
          template.details.matches?(requested_details)
        end

        if filtered_templates.count > 1
          filtered_templates.sort_by! do |template|
            template.details.sort_key_for(requested_details)
          end
        end

        filtered_templates
      end
Register or log in to add new notes.