Namespace
- MODULE Arel::Nodes
Methods
- S
Constants
VERSION | = | "10.0.0" |
Class Public methods
sql(raw_sql) Link
Wrap a known-safe SQL string for passing to query methods, e.g.
Post.order(Arel.sql("length(title)")).last
Great caution should be taken to avoid SQL injection vulnerabilities. This method should not be used with unsafe values such as request parameters or model attributes.