- 09 6月, 2012 8 次提交
-
-
由 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 17 次提交
-
-
由 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.
-
由 José Valim 提交于
bundle exec rake assets:precompile shouldn't fail quietly.
-
由 Rafael Mendonça França 提交于
add instance_accessor option to config_accessor
-
由 John Yani 提交于
If JavaScript runtime is not installed, execjs fails with error quietly, while tests continue to run. This should not happen since it causes tests to fail for unknown reason (#6621). This commit assures that if JavaScript runtime is not installed, an assertion is raised.
-
- 05 6月, 2012 9 次提交
-
-
由 Francesco Rodriguez 提交于
Changes: * Add `instance_accessor` option to opt out of the instance writer and instance reader methods. * Raises a NameError if the name of the attribute is not valid. * Update documentation and tests. * Add CHANGELOG entry in activesupport.
-
由 Carlos Antonio da Silva 提交于
Resolver tests fail if mysql adapter not installed
-
由 José Valim 提交于
One-liner code for logger in ActionView::Helpers::ControllerHelper
-
由 Dmitry Vorotilin 提交于
-
由 José Valim 提交于
Accept a block in FormHelper#button
-
由 José Valim 提交于
Fixed the Gemfile when gemspec is skipped in the 'rails plugin new' command
-
由 José Valim 提交于
Metal controller doesn't have logger method, check it and then delegate
-
由 Dmitry Vorotilin 提交于
-
由 Fred Wu 提交于
-