- 10 6月, 2012 11 次提交
-
-
由 José Valim 提交于
Build fix broken here 03f22491
-
由 Arun Agrawal 提交于
-
由 José Valim 提交于
Add Prompt to 404 & 500 Pages to Check Logs in Production
-
由 José Valim 提交于
-
由 José Valim 提交于
Notify A User they Have Pending Migrations
-
由 Rafael Mendonça França 提交于
Fix fragile #assert_queries implementation and usages.
-
由 Xavier Noria 提交于
This is an obsolete method from the very early days, apparently it was used circa 2004 because STI support was not smart enough. This method is not public interface, and we are heading a major version, so removal seems right.
-
由 Steve Jorgensen 提交于
Several tests that passed when run in the order they are loaded by rake test were failing when run in different sequences due to problems with the implementation of assert_queries and assert_no_queries as well as incorrect assumptions made about how many queries might be executed by a database adapter in various cases.
-
由 schneems 提交于
When new programmers push their code to a production server and receive an error they often don't know to check the logs, this simple reminder will help. Most professional applications have custom error pages so this change shouldn't affect them. The wording of the message should not confuse non-developer visitors.
-
由 schneems 提交于
App should raise error on page_load
-
由 schneems 提交于
can be configured by setting config.active_record.migration. Setting to :page_load will raise an error on each page refresh if there are migrations that are pending. Setting to :page_load is defaulted in development for new applications.
-
- 09 6月, 2012 9 次提交
-
-
由 Santiago Pastorino 提交于
-
由 Santiago Pastorino 提交于
-
由 José Valim 提交于
ActiveRecord#attributes optimization: minimize objects created
-
由 Piotr Sarnacki 提交于
Fix for a test failing after: 00ff0a67
-
由 Piotr Sarnacki 提交于
Compact array of values added to PermissionSet instance
-
由 Rafael Mendonça França 提交于
Plugin gen fix
-
由 Piotr Sarnacki 提交于
(closes #6672)
-
由 Arun Agrawal 提交于
if we are passing -T which is skip_test_unit See issue #6673 for more details. I saw that we are not creating dummy app even if we do skip_test_unit. Fixes #6673
-
由 Arun Agrawal 提交于
-
- 08 6月, 2012 4 次提交
-
-
由 Rafael Mendonça França 提交于
Skip two tests with polymorphic if current adapter is Oracle Adapter.
-
由 Rafael Mendonça França 提交于
change AMS::JSON.include_root_in_json default value to false
-
由 Yasuo Honda 提交于
because Oracle Adapter does not support foreign keys if :polymorphic => true is used.
-
由 Nikita Pomyashchiy 提交于
-
- 07 6月, 2012 2 次提交
-
-
由 Carlos Antonio da Silva 提交于
Add ActiveRecord::Base#destroy!
-
由 Marc-Andre Lafortune 提交于
-
- 06 6月, 2012 14 次提交
-
-
由 Carlos Antonio da Silva 提交于
Reduce number of String instance
-
由 Akira Matsuda 提交于
-
由 Rafael Mendonça França 提交于
MiniTest::Spec shipped with Ruby >= 1.9.3 always responds_to __name__
-
由 Akira Matsuda 提交于
-
由 Akira Matsuda 提交于
-
由 Akira Matsuda 提交于
-
由 Akira Matsuda 提交于
Module#methods are Symbols in Ruby >= 1.9
-
由 Andrew White 提交于
fix meaningless test case
-
由 Akira Matsuda 提交于
Module#instance_methods returns an Array of Symbols in Ruby >= 1.9 So this was not actually testing anything
-
由 Andrew White 提交于
-
由 José Valim 提交于
Fixed the application_controller require_dependency path generated by the app generator
-
由 Fred Wu 提交于
-
由 Francesco Rodriguez 提交于
Changes: * Update `include_root_in_json` default value to false for default value to false for `ActiveModel::Serializers::JSON`. * Remove unnecessary change to include_root_in_json option in wrap_parameters template. * Update `as_json` documentation. * Fix JSONSerialization tests. Problem: It's confusing that AM serializers behave differently from AR, even when AR objects include AM serializers module. class User < ActiveRecord::Base; end class Person include ActiveModel::Model include ActiveModel::AttributeMethods include ActiveModel::Serializers::JSON attr_accessor :name, :age def attributes instance_values end end user.as_json => {"id"=>1, "name"=>"Konata Izumi", "age"=>16, "awesome"=>true} # root is not included person.as_json => {"person"=>{"name"=>"Francesco", "age"=>22}} # root is included ActiveRecord::Base.include_root_in_json => false Person.include_root_in_json => true # different default values for include_root_in_json Proposal: Change the default value of AM serializers to false, update the misleading documentation and remove unnecessary change to false of include_root_in_json option with AR objects. class User < ActiveRecord::Base; end class Person include ActiveModel::Model include ActiveModel::AttributeMethods include ActiveModel::Serializers::JSON attr_accessor :name, :age def attributes instance_values end end user.as_json => {"id"=>1, "name"=>"Konata Izumi", "age"=>16, "awesome"=>true} # root is not included person.as_json => {"name"=>"Francesco", "age"=>22} # root is not included ActiveRecord::Base.include_root_in_json => false Person.include_root_in_json => false # same behaviour, more consistent Fixes #6578.
-
由 Andrew White 提交于
To facilitate the use of ActiveSupport::Testing::Performance outside of a Rails application conditionally check for the presence of Rails::VERSION::STRING before including it in the environment string.
-