method

make_pattern

rails latest stable - Class: ActiveRecord::DynamicMatchers::Method

Method not available on this version

This method is only available on newer versions. The first available version (v8.1.1) is shown here.

make_pattern(prefix, suffix)
private

No documentation available.

# File activerecord/lib/active_record/dynamic_matchers.rb, line 47
            def make_pattern(prefix, suffix)
              /\A#{prefix}_([_a-zA-Z]\w*)#{suffix}\Z/
            end