method
make_pattern
v8.1.1 -
Show latest stable
- Class:
ActiveRecord::DynamicMatchers::Method
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