Delegating ActiveRecord scopes
18-Jan-2019 2687
In Ruby on Rails, access to the database is by default controlled through the ActiveRecord ORM. ActiveRecord operates on Relation objects that contain the configuration for an SQL query that will be executed at a later time. Relation objects have the ability to copy their internal configuration over to a new Relation object with new options in order to further customize those queries.
Delegating ActiveRecord scopes #ruby #rubydeveloper #rubyonrails #Delegating #ActiveRecord #scopes #activerecord https://rubyonrails.ba/link/delegating-activerecord-scopes