- 08 9月, 2015 3 次提交
-
-
由 Matthew Draper 提交于
Generic cast-to-text was only added in 8.3.
-
由 Rafael Mendonça França 提交于
PERF: Don't create a Relation when it is not needed.
-
由 Arun Agrawal 提交于
Typo fix (ci skip)
-
- 07 9月, 2015 12 次提交
-
-
由 amitkumarsuroliya 提交于
`lengh` should be `length`
-
由 Yves Senn 提交于
Add require to ensure Time#advance works without implicit required
-
由 Yves Senn 提交于
Use global migrations_path configuration in Migrator
-
由 Tobias Bielohlawek 提交于
-
由 Yves Senn 提交于
-
由 Akira Matsuda 提交于
Fix strange messages for `rails g foo`
-
由 FUJI Goro (gfx) 提交于
-
由 Guo Xiang Tan 提交于
Benchmark script used: ``` begin require 'bundler/inline' rescue LoadError => e $stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler' raise e end gemfile(true) do source 'https://rubygems.org' gem 'rails', path: '~/rails' # master against ref "f1f0a3f8" gem 'arel', github: 'rails/arel', branch: 'master' gem 'rack', github: 'rack/rack', branch: 'master' gem 'sass' gem 'sprockets-rails', github: 'rails/sprockets-rails', branch: 'master' gem 'sprockets', github: 'rails/sprockets', branch: 'master' gem 'pg' gem 'benchmark-ips' end require 'active_record' require 'benchmark/ips' ActiveRecord::Base.establish_connection('postgres://postgres@localhost:5432/rubybench') ActiveRecord::Migration.verbose = false ActiveRecord::Schema.define do create_table :users, force: true do |t| t.string :name, :email t.timestamps null: false end end class User < ActiveRecord::Base; end attributes = { name: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.", email: "foobar@email.com", } 1000.times { User.create!(attributes) } Benchmark.ips(5, 3) do |x| x.report('all') { User.all } end key = if RUBY_VERSION < '2.2' :total_allocated_object else :total_allocated_objects end before = GC.stat[key] User.where(name: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.") after = GC.stat[key] puts "Total Allocated Object: #{after - before}" ``` Before: ``` Calculating ------------------------------------- all 17.569k i/100ms ------------------------------------------------- all 190.854k (± 3.3%) i/s - 966.295k Total Allocated Object: 85 ``` After: ``` Calculating ------------------------------------- all 22.237k i/100ms ------------------------------------------------- all 262.715k (± 5.5%) i/s - 1.312M Total Allocated Object: 80 ```
-
由 Yves Senn 提交于
safe_constantize - Added Object scoped missing test cases
-
由 Kasper Timm Hansen 提交于
adding description of return value [ci skip]
-
由 Richard Schneeman 提交于
[ci skip] Replace `AR` with `Active Record` in task desc
-
由 yui-knk 提交于
Many user look `desc` of rake task and they are not familiar with `AR`. `Active Record` is more familiar word.
-
- 06 9月, 2015 10 次提交
-
-
由 Matthew Draper 提交于
Apparently I managed to forget how similar the "tests passing" and "no status reported" merge indicators look. Note that the previous `stubs` in test_add_index wasn't working: the method was still called, and just happened to return false.
-
由 Matthew Draper 提交于
Support dropping indexes concurrently in Postgres
-
由 Matthew Draper 提交于
Deprecate passing conditions to AR::Relation destroy_all and delete_all methods
-
由 Wojciech Wnętrzak 提交于
-
由 Xavier Noria 提交于
Removed Extra ‘the’ [ci skip]
-
由 Ronak Jangir 提交于
-
由 Ronak Jangir 提交于
-
由 Aaron Patterson 提交于
`hfvalue` parts should always be percent encoded, so lets do that! Revert "use path escaping for email addresses" This reverts commit 21ffef38.
-
由 Kasper Timm Hansen 提交于
Remove mocha from ActionPack tests
-
由 Grey Baker 提交于
See http://www.postgresql.org/docs/9.4/static/sql-dropindex.html for more details.
-
- 05 9月, 2015 8 次提交
-
-
由 Marcin Olichwirowicz 提交于
-
由 Aaron Patterson 提交于
converts old ID methods to the new abstract store methods in Rack
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
Just include the modules necessary in the Request object to implement the things we need. This should make it easier to build delegate request objects because the API is smaller
-
由 Sean Griffin 提交于
#where fails if opts.responds_to?(:==) unexpectedly
-
由 Samuel Williams 提交于
Sometimes opts passed in might respond to ==, e.g. `Arel::Nodes::Grouping`. In this case, `opts == :chain` returns `Arel::Nodes::Equality` which causes odd behaviour. Prefer `if :chain == opts` which guarantees that `Symbol#==` would be invoked. Alternatively consider `eql?`.
-
由 Aaron Patterson 提交于
Due to e25fdad2, we are correctly using path escaping for email addresses. This commit fixes the tests to expect path escaping.
-
由 Aaron Patterson 提交于
Escaping and unescaping paths is different than query parameters, and we need to respect that. This commit uses the new method in Rack to escape and unescape paths. Fixes #11816
-
- 04 9月, 2015 7 次提交
-
-
由 Yves Senn 提交于
Add detailed error message to `IrreversibleMigration`
-
由 Kasper Timm Hansen 提交于
fix module name typo in API app guide [ci skip]
-
由 yuuji.yaginuma 提交于
-
由 Carlos Antonio da Silva 提交于
Update Unicode Version to 8.0.0
-
由 Anshul Sharma 提交于
-
由 Carlos Antonio da Silva 提交于
Remove unnecessary require in associations_test.rb
-
由 Carlos Antonio da Silva 提交于
Removed unused config from activemodel test
-