module Arel

def self.sql(raw_sql)

Experimental RBS support (using type sampling data from the type_fusion project).

def self.sql: (String raw_sql) -> Arel::Nodes::SqlLiteral

This signature was generated using 41 samples from 1 application.

parameters or model attributes.
This method should not be used with unsafe values such as request
Great caution should be taken to avoid SQL injection vulnerabilities.

Post.order(Arel.sql("REPLACE(title, 'misc', 'zzzz') asc")).pluck(:id)

Wrap a known-safe SQL string for passing to query methods, e.g.
def self.sql(raw_sql)
  Arel::Nodes::SqlLiteral.new raw_sql
end