- 30 1月, 2014 12 次提交
-
-
由 Robin Dupret 提交于
Fix documentation of filters api with classes [ci skip]
-
由 Kassio Borges 提交于
The api for filters with classes change and the guides weren't updated. Now the class must respond for methods with the same name as the filter, so the `before_action` calls a `before` method, and so on. The method `#filter` has been deprecated in 4.0.0 and has been removed in 4.1.0: #7560
-
由 Rafael Mendonça França 提交于
`find_in_batches` now returns an `Enumerator` Conflicts: activerecord/CHANGELOG.md activerecord/lib/active_record/relation/batches.rb
-
由 Rafael Mendonça França 提交于
Mention find_each in find_in_batches doc [ci skip]
-
由 Marc-Andre Lafortune 提交于
-
由 Godfrey Chan 提交于
Raise an error if `scope` or `enum` is about to add a conflicting method to the class Fixed #13389
-
由 Godfrey Chan 提交于
Dangerous name conflicts includes instance or class method conflicts with methods defined within `ActiveRecord::Base` but not its ancestors, as well as conflicts with methods generated by other enums on the same class. Fixes #13389.
-
由 Godfrey Chan 提交于
Similar to dangerous attribute methods, a scope name conflict is dangerous if it conflicts with an existing class method defined within `ActiveRecord::Base` but not its ancestors. See also #13389. *Godfrey Chan*, *Philippe Creux*
-
由 Godfrey Chan 提交于
Before: >> ActiveRecord::Base.respond_to?(:find_by_something) NoMethodError: undefined method `abstract_class?' for Object:Class After: >> ActiveRecord::Base.respond_to?(:find_by_something) => false
-
由 Guillermo Iguaran 提交于
-
由 Guillermo Iguaran 提交于
Allow session serializer key in config.session_store
-
由 Lukasz Sarnacki 提交于
MessageEncryptor has :serializer option, where any serializer object can be passed. This commit make it possible to set this serializer from configuration level. There are predefined serializers (:marshal_serializer, :json_serialzier) and custom serializer can be passed as String, Symbol (camelized and constantized in ActionDispatch::Session namepspace) or serializer object. Default :json_serializer was also added to generators to provide secure defalt.
-
- 29 1月, 2014 10 次提交
-
-
由 Yves Senn 提交于
Correctly send the string given to lock! and reload(:lock) to the lock scope - fixes #13788
-
由 Mauricio Linhares 提交于
As per the documentation at lock!, if the :lock option is a string it should use the given SQL to generate the lock statement.
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Rafael Mendonça França 提交于
Added documentation for css_compressor in asset_pipeline.md
-
由 Rafael Mendonça França 提交于
Log for which keys values were set to nil in deep_munge
-
由 sowjanya 提交于
-
由 Godfrey Chan 提交于
Handle aliased attributes in AR::Relation#select, #order, etc.
-
由 Tsutomu Kuroda 提交于
With this we can write `Model#select(:aliased)`, `Model#order(:aliased)`, `Model#reoder(aliased: :desc)`, etc. Supplementary work to 54122067.
-
由 Lukasz Sarnacki 提交于
deep_munge solves CVE-2013-0155 security vulnerability, but its behaviour is definately confuisng. This commit adds logging to deep_munge. It logs keys for which values were set to nil. Also mentions in guides were added.
-
- 28 1月, 2014 8 次提交
-
-
由 Carlos Antonio da Silva 提交于
-
由 Damien Mathieu 提交于
Add docs about behaviour of replacing a has_one associate object.
-
由 Vipul A M 提交于
Add docs about behaviour of replacing a has_one associate object, that the previous one is deleted even if the new one doesn't get persisted to database. Fixes #13197 . [ci skip]
-
由 Carlos Antonio da Silva 提交于
Replace File.exists? with File.exist?
-
由 Teo Ljungberg 提交于
To quell warnings on ruby 2.1
-
由 Carlos Antonio da Silva 提交于
use the new clear_validators! api everywhere to reset validators in tests
-
由 Kuldeep Aggarwal 提交于
-
由 Rafael Mendonça França 提交于
Rails config for raise on missing translations
-
- 27 1月, 2014 10 次提交
-
-
由 Andrew White 提交于
The request attributes filtered_parameters, filtered_env and filtered_path are memoized for performance reasons. However this can cause unusual behavior in tests where there are multiple calls to get, post, etc. Fixes #13803.
-
由 Yves Senn 提交于
-
由 Carlos Antonio da Silva 提交于
-
由 Carlos Antonio da Silva 提交于
-
由 Carlos Antonio da Silva 提交于
-
由 Yves Senn 提交于
-
由 Carlos Antonio da Silva 提交于
Ability to specify multiple contexts when defining a validation.
-
由 Kassio Borges 提交于
Add a config to setup whether raise exception for missing translation or not.
-
由 Carlos Antonio da Silva 提交于
Display value when raising due to unscope() issues
-
由 Vince Puzzella 提交于
Example: validates_presence_of :name, on: [:update, :custom_validation_context]
-