method

create

Importance_0
v7.0.0 - Show latest stable - 0 notes - Class: StatementCache
create(connection, callable = nil, &block) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/statement_cache.rb, line 132
    def self.create(connection, callable = nil, &block)
      relation = (callable || block).call Params.new
      query_builder, binds = connection.cacheable_query(self, relation.arel)
      bind_map = BindMap.new(binds)
      new(query_builder, bind_map, relation.klass)
    end
Register or log in to add new notes.