class RuboCop::Cop::Rails::FilePath

def build_message(require_to_s)

def build_message(require_to_s)
  message_template = style == :arguments ? MSG_ARGUMENTS : MSG_SLASHES
  to_s = require_to_s ? '.to_s' : ''
  format(message_template, to_s: to_s)
end