diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-11-27 13:50:10 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-11-27 13:50:10 -0200 |
commit | 07f4bd5b60d062bda58a45ca5f832a0a6bcdc713 (patch) | |
tree | beae855a0468655c9327edc492e362fe58102c6e | |
parent | fd8cbcef731476fc5902a2d8be973bc51e11f828 (diff) | |
download | rails-07f4bd5b60d062bda58a45ca5f832a0a6bcdc713.tar.gz rails-07f4bd5b60d062bda58a45ca5f832a0a6bcdc713.tar.bz2 rails-07f4bd5b60d062bda58a45ca5f832a0a6bcdc713.zip |
StatementCache is private API
It should not be used in applications
-rw-r--r-- | activerecord/lib/active_record/statement_cache.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/activerecord/lib/active_record/statement_cache.rb b/activerecord/lib/active_record/statement_cache.rb index aece446384..767c7561cf 100644 --- a/activerecord/lib/active_record/statement_cache.rb +++ b/activerecord/lib/active_record/statement_cache.rb @@ -13,10 +13,10 @@ module ActiveRecord # # The relation returned by the block is cached, and for each +execute+ call the cached relation gets duped. # Database is queried when +to_a+ is called on the relation. - class StatementCache - class Substitute; end + class StatementCache # :nodoc: + class Substitute; end # :nodoc: - class Query + class Query # :nodoc: def initialize(sql) @sql = sql end @@ -26,7 +26,7 @@ module ActiveRecord end end - class PartialQuery < Query + class PartialQuery < Query # :nodoc: def initialize values @values = values @indexes = values.each_with_index.find_all { |thing,i| @@ -51,11 +51,11 @@ module ActiveRecord PartialQuery.new collected end - class Params + class Params # :nodoc: def bind; Substitute.new; end end - class BindMap + class BindMap # :nodoc: def initialize(bind_values) @indexes = [] @bind_values = bind_values |